Skip to content

Commit

Permalink
[ticket/15696] Add support of other tools to 'if'
Browse files Browse the repository at this point in the history
PHPBB3-15696
  • Loading branch information
senky committed Jun 19, 2018
1 parent 02cbb86 commit 1afc067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/phpbb/db/migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ protected function get_callable_from_step(array $step, $last_result = 0, $revers

$condition = $parameters[0];

if (!$condition)
if (!$condition || (is_array($condition) && !$this->run_step($condition, $last_result, $reverse)))
{
return false;
}
Expand Down

0 comments on commit 1afc067

Please sign in to comment.