Merge pull request #181 from annando/master

Statistics: Bugfix for query
This commit is contained in:
Tobias Diekershoff 2014-02-03 22:31:27 -08:00
commit 7137c66dd5

View file

@ -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;