From: edward Date: Fri, 5 Feb 2016 04:00:31 +0000 (+0800) Subject: Report/SendEventErrors.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=1c5e3d2a4408cbafbf361d594c6c224d6188573a Report/SendEventErrors.php --- diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index b2de1f8..30872f8 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -51,7 +51,7 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $events->selectAdd(); $events->selectAdd(" DISTINCT(Events.action) AS action, - COUNT(Events.id) AS count + COUNT(Events.id) AS total "); $events->whereAdd("Events.event_when > NOW() - INTERVAL 1 DAY"); @@ -59,7 +59,7 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $events->groupBy('Events.action'); $events->orderBy('Events.action ASC'); - print_r($events->fetchAll());exit; + print_r($events->fetchAll('action', 'total'));exit; $this->jok("Done");