mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 20:10:20 +00:00
Merge pull request #181 from annando/master
Statistics: Bugfix for query
This commit is contained in:
commit
7137c66dd5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue