mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-05-24 11:58:11 +03:00
Fixing bug when a task doesn't have any config options
This commit is contained in:
parent
0d433aabf4
commit
676f364ecd
|
@ -105,11 +105,14 @@ class Controller_Minion extends Controller
|
|||
exit(1);
|
||||
}
|
||||
|
||||
$config = array();
|
||||
$options = (array) $task->get_config_options();
|
||||
|
||||
$options = empty($options) ? array() : $task->get_config_options();
|
||||
|
||||
$config = call_user_func_array(array('CLI', 'options'), $options);
|
||||
if( ! empty($options))
|
||||
{
|
||||
$options = $task->get_config_options();
|
||||
$config = call_user_func_array(array('CLI', 'options'), $options);
|
||||
}
|
||||
|
||||
echo $task->execute($config);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue