From 595f831589acc87944a0439776abb8a953f1c70c Mon Sep 17 00:00:00 2001 From: Nicofuma Date: Wed, 23 Apr 2014 19:41:55 +0200 Subject: [ticket/12432] Migrator should not revert custom functions https://tracker.phpbb.com/browse/PHPBB3-12432 PHPBB3-12432 --- phpBB/phpbb/db/migrator.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'phpBB/phpbb/db/migrator.php') diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index d3bbbc63c5..5ad8563e5c 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -509,10 +509,17 @@ class migrator throw new \phpbb\db\migration\exception('MIGRATION_INVALID_DATA_CUSTOM_NOT_CALLABLE', $step); } - return array( - $parameters[0], - array($last_result), - ); + if ($reverse) + { + return false; + } + else + { + return array( + $parameters[0], + array($last_result), + ); + } break; default: -- cgit v1.2.1