aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-22 13:35:46 +0000
committerMario <mario@mariovavti.com>2022-12-22 13:35:46 +0000
commita46e2c1e6db63b03552bba9d6699b8509fd6daa0 (patch)
tree1dcb681bd1bbbaaab687f2337558ea539ff8f0fc
parent2b0404fefc69678db7afa5e1f25a5f1fabd50907 (diff)
downloadvolse-hubzilla-a46e2c1e6db63b03552bba9d6699b8509fd6daa0.tar.gz
volse-hubzilla-a46e2c1e6db63b03552bba9d6699b8509fd6daa0.tar.bz2
volse-hubzilla-a46e2c1e6db63b03552bba9d6699b8509fd6daa0.zip
only display details if there are any
-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);