mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-16 15:01:08 +03:00
Don't fail on tasks with no command line options
This commit is contained in:
parent
d85ba5037b
commit
5283d121c2
|
@ -88,7 +88,9 @@ class Controller_Minion extends Controller
|
|||
|
||||
$options = $task->get_config_options();
|
||||
|
||||
$config = call_user_func_array(array('CLI', 'options'), $options);
|
||||
$config = count($options)
|
||||
? call_user_func_array(array('CLI', 'options'), $options)
|
||||
: array();
|
||||
|
||||
echo $task->execute($config);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue