aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Module/Queueworker.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Module/Queueworker.php b/Zotlabs/Module/Queueworker.php
index 0e0529bc0..440132881 100644
--- a/Zotlabs/Module/Queueworker.php
+++ b/Zotlabs/Module/Queueworker.php
@@ -61,10 +61,11 @@ class Queueworker extends Controller {
$r = dbq("select workerq_cmd, count(*) as total from workerq where true group by workerq_cmd");
- $content .= "<H4>Work items</H4>";
-
- foreach($r as $rr) {
- $content .= $rr['workerq_cmd'] . ': ' . $rr['total'] . '<br>';
+ if ($r) {
+ $content .= "<H4>Work items</H4>";
+ foreach($r as $rr) {
+ $content .= $rr['workerq_cmd'] . ': ' . $rr['total'] . '<br>';
+ }
}
$maxqueueworkers = get_config('queueworker', 'max_queueworkers', 4);