diff options
author | Simon Rettberg | 2018-04-25 17:00:11 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-25 17:00:11 +0200 |
commit | 30c3af19036593d702618290f6a60732617c5297 (patch) | |
tree | 3489f764863cdc83a6687789df6ace8c5c106dcd /modules-available/rebootcontrol/inc/rebootcontrol.inc.php | |
parent | [inc/Taskmanager] isTask() Only query if taskId is given (diff) | |
download | slx-admin-30c3af19036593d702618290f6a60732617c5297.tar.gz slx-admin-30c3af19036593d702618290f6a60732617c5297.tar.xz slx-admin-30c3af19036593d702618290f6a60732617c5297.zip |
[rebootcontrol] Fix NO_SUCH_INSTANCE handling
Diffstat (limited to 'modules-available/rebootcontrol/inc/rebootcontrol.inc.php')
-rw-r--r-- | modules-available/rebootcontrol/inc/rebootcontrol.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php index 1024b036..ec4b84ed 100644 --- a/modules-available/rebootcontrol/inc/rebootcontrol.inc.php +++ b/modules-available/rebootcontrol/inc/rebootcontrol.inc.php @@ -66,7 +66,7 @@ class RebootControl continue; $id = $p[1]; $task = Taskmanager::status($id); - if ($task === false) { + if (!Taskmanager::isTask($task)) { Property::removeFromList(RebootControl::KEY_TASKLIST, $entry); continue; } |