1
0
Fork 0
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:
Andrew Hutchings 2011-01-07 16:26:37 +08:00 committed by Matt Button
parent d85ba5037b
commit 5283d121c2

View file

@ -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);
}