summaryrefslogtreecommitdiffstats
path: root/inc/taskmanager.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-06 20:31:42 +0200
committerSimon Rettberg2014-06-06 20:31:42 +0200
commitb9f67a0ac4dcdc745e14dd4f4097c5560e90a1e1 (patch)
tree08e85b79bbc024d5497f2d65b744822ff8abf35e /inc/taskmanager.inc.php
parentMore stuff for system status page (diff)
downloadslx-admin-b9f67a0ac4dcdc745e14dd4f4097c5560e90a1e1.tar.gz
slx-admin-b9f67a0ac4dcdc745e14dd4f4097c5560e90a1e1.tar.xz
slx-admin-b9f67a0ac4dcdc745e14dd4f4097c5560e90a1e1.zip
Reboot functionality on system status page
Diffstat (limited to 'inc/taskmanager.inc.php')
-rw-r--r--inc/taskmanager.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/taskmanager.inc.php b/inc/taskmanager.inc.php
index 308d7136..b61714ec 100644
--- a/inc/taskmanager.inc.php
+++ b/inc/taskmanager.inc.php
@@ -96,7 +96,7 @@ class Taskmanager
public static function isFailed($task)
{
- if (!isset($task['statusCode']) || !isset($task['id']))
+ if (!is_array($task) || !isset($task['statusCode']) || !isset($task['id']))
return true;
if ($task['statusCode'] !== TASK_WAITING && $task['statusCode'] !== TASK_PROCESSING && $task['statusCode'] !== TASK_FINISHED)
return true;