diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-24 18:03:32 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-24 18:03:32 +0000 |
commit | 414e58a4272078ae7a411688a948bf78c37fbf0d (patch) | |
tree | d3c846f91eef44b8a1ab448d3f1cd3f00cce62ed | |
parent | 00ffb24eb05705813505ac6e83adb155a9303496 (diff) |
Fix the problem I created by trying to run the task again after it was completed.
-rw-r--r-- | modules/server_add/controllers/server_add.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/server_add/controllers/server_add.php b/modules/server_add/controllers/server_add.php index 8f0ff4d8..fe511b46 100644 --- a/modules/server_add/controllers/server_add.php +++ b/modules/server_add/controllers/server_add.php @@ -122,7 +122,7 @@ class Server_Add_Controller extends Controller { public function finish($id, $task_id, $cancelled=false) { access::verify_csrf(); - $task = task::run($task_id); + $task = ORM::factory("task", $task_id); if (!$task->done && $cancelled) { message::warning(t("Add from server was cancelled prior to completion")); |