aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/zot.php2
-rw-r--r--mod/ping.php6
2 files changed, 5 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index a8a8044b2..c4e7459ac 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -909,6 +909,8 @@ function process_delivery($sender,$arr,$deliveries,$relay) {
if(! $deliveries)
$result[] = array('','no recipients');
+ logger('process_delivery: local results: ' . print_r($result,true));
+
return $result;
}
diff --git a/mod/ping.php b/mod/ping.php
index b135ac6e3..6b76c33ca 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -210,7 +210,7 @@ function ping_init(&$a) {
$t5 = dba_timer();
- $events = q("SELECT count(`event`.`id`) as total, type, start, adjust FROM `event`
+ $events = q("SELECT type, start, adjust FROM `event`
WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s' and `ignore` = 0
ORDER BY `start` ASC ",
intval(local_user()),
@@ -218,8 +218,8 @@ function ping_init(&$a) {
dbesc(datetime_convert('UTC','UTC','now'))
);
- if($events && count($events)) {
- $result['all_events'] = intval($events[0]['total']);
+ if($events) {
+ $result['all_events'] = count($events);
if($result['all_events']) {
$str_now = datetime_convert('UTC',$a->timezone,'now','Y-m-d');