Fixes for ADSL traffic collection and other ADSL items
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
class Task_Task_Run extends Task {
|
||||
protected function _execute(array $params) {
|
||||
if (isset($params['id'])) {
|
||||
if ($params['id']) {
|
||||
$to = ORM::factory('Task',$params['id']);
|
||||
|
||||
if ($to->loaded()) {
|
||||
@@ -20,7 +20,7 @@ class Task_Task_Run extends Task {
|
||||
throw new Minion_Exception_InvalidTask('Task :task (:name) NOT active',array(':task'=>$params['id'],':name'=>$to->name));
|
||||
|
||||
if (! Kohana::$config->load('debug')->task_sim)
|
||||
$to->run();
|
||||
$to->run($params['force']);
|
||||
else
|
||||
printf('Would Run task: (%s) %s',$params['id'],$to->name);
|
||||
|
||||
|
Reference in New Issue
Block a user