[ticket/11369] Reverting migration throws error

String is attempted to be unserialized

PHPBB3-11369
This commit is contained in:
Nathaniel Guse 2013-02-26 19:25:51 -06:00
parent 80bd78a5e5
commit f9cbf5b4c7

View file

@ -434,7 +434,7 @@ class phpbb_db_migrator
} }
else else
{ {
$result = $this->process_data_step($migration->revert_data(), $state['migration_data_state'], false); $result = $this->process_data_step($migration->revert_data(), '', false);
$state['migration_data_state'] = ($result === true) ? '' : $result; $state['migration_data_state'] = ($result === true) ? '' : $result;
$state['migration_data_done'] = ($result === true) ? false : true; $state['migration_data_done'] = ($result === true) ? false : true;