diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-11-09 15:53:29 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-11-09 15:53:29 +0100 |
commit | 7344024b107ef1d2e6b401861447958623e7d821 (patch) | |
tree | bc5e0a410be665d8cd006ba58706931b08b98f3c /phpBB/phpbb | |
parent | 3b68540ceed54342dec4400495e91c797e19c44e (diff) | |
parent | 1173adfe87f4622cbf3bfb53393166616c04b25f (diff) | |
download | forums-7344024b107ef1d2e6b401861447958623e7d821.tar forums-7344024b107ef1d2e6b401861447958623e7d821.tar.gz forums-7344024b107ef1d2e6b401861447958623e7d821.tar.bz2 forums-7344024b107ef1d2e6b401861447958623e7d821.tar.xz forums-7344024b107ef1d2e6b401861447958623e7d821.zip |
Merge remote-tracking branch 'dhruv/ticket/12007' into develop
* dhruv/ticket/12007:
[ticket/12007] Default last_result to 0 instead of false
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migrator.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 3b966b7fe3..8186493800 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -375,7 +375,7 @@ class migrator foreach ($steps as $step_identifier => $step) { - $last_result = false; + $last_result = 0; if ($state) { // Continue until we reach the step that matches the last step called @@ -436,7 +436,7 @@ class migrator * @param bool $reverse False to install, True to attempt uninstallation by reversing the call * @return null */ - protected function run_step($step, $last_result = false, $reverse = false) + protected function run_step($step, $last_result = 0, $reverse = false) { $callable_and_parameters = $this->get_callable_from_step($step, $last_result, $reverse); @@ -459,7 +459,7 @@ class migrator * @param bool $reverse False to install, True to attempt uninstallation by reversing the call * @return array Array with parameters for call_user_func_array(), 0 is the callable, 1 is parameters */ - protected function get_callable_from_step(array $step, $last_result = false, $reverse = false) + protected function get_callable_from_step(array $step, $last_result = 0, $reverse = false) { $type = $step[0]; $parameters = $step[1]; |