From d82684219a861ad25ade416cf95f85c2cc8a8217 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Apr 2017 04:51:16 +0000 Subject: [PATCH] Issue 3331: Removed unneeded table "deliverq" --- mod/admin.php | 5 +---- view/templates/admin_summary.tpl | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index e86bb90ddd..2652b33c12 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -474,9 +474,6 @@ function admin_page_summary(App $a) { $r = qu("SELECT COUNT(`id`) AS `count` FROM `register`"); $pending = $r[0]['count']; - $r = qu("SELECT COUNT(*) AS `total` FROM `deliverq` WHERE 1"); - $deliverq = (($r) ? $r[0]['total'] : 0); - $r = qu("SELECT COUNT(*) AS `total` FROM `queue` WHERE 1"); $queue = (($r) ? $r[0]['total'] : 0); @@ -485,7 +482,7 @@ function admin_page_summary(App $a) { // We can do better, but this is a quick queue status - $queues = array('label' => t('Message queues'), 'deliverq' => $deliverq, 'queue' => $queue, 'workerq' => $workerqueue); + $queues = array('label' => t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue); $t = get_markup_template("admin_summary.tpl"); diff --git a/view/templates/admin_summary.tpl b/view/templates/admin_summary.tpl index a8243b6149..e650144134 100644 --- a/view/templates/admin_summary.tpl +++ b/view/templates/admin_summary.tpl @@ -11,7 +11,7 @@
{{$queues.label}}
-
{{$queues.deliverq}} - {{$queues.queue}} - {{$queues.workerq}}
+
{{$queues.queue}} - {{$queues.workerq}}
{{$pending.0}}