From b629aae1c66c365726d3d421113edcdc1c087c5c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 3 Feb 2014 22:39:02 +0100 Subject: [PATCH 1/2] statistics: Bugfix for query. --- statistics_json/statistics_json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statistics_json/statistics_json.php b/statistics_json/statistics_json.php index ffafb400..e29d7422 100644 --- a/statistics_json/statistics_json.php +++ b/statistics_json/statistics_json.php @@ -46,7 +46,7 @@ function statistics_json_cron($a,$b) { $next = $last + (180 * 60); if($next > time()) { logger('statistics_json_cron: calculation intervall not reached'); - return; + // return; } } logger('statistics_json_cron: cron_start'); @@ -91,7 +91,7 @@ function statistics_json_cron($a,$b) { set_config('statistics_json','active_users_monthly', $active_users_monthly); } - $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` left(body, 6) != '[share'"); + $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` AND left(body, 6) != '[share'"); if (!is_array($posts)) $local_posts = -1; From 4259a45dc43d72385583004947017c1cfb6a0ba6 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 3 Feb 2014 22:40:09 +0100 Subject: [PATCH 2/2] statistics: comment removed --- statistics_json/statistics_json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics_json/statistics_json.php b/statistics_json/statistics_json.php index e29d7422..526c5224 100644 --- a/statistics_json/statistics_json.php +++ b/statistics_json/statistics_json.php @@ -46,7 +46,7 @@ function statistics_json_cron($a,$b) { $next = $last + (180 * 60); if($next > time()) { logger('statistics_json_cron: calculation intervall not reached'); - // return; + return; } } logger('statistics_json_cron: cron_start');