mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 21:23:41 +00:00
statistics: Bugfix for query.
This commit is contained in:
parent
31cff782f8
commit
b629aae1c6
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ function statistics_json_cron($a,$b) {
|
||||||
$next = $last + (180 * 60);
|
$next = $last + (180 * 60);
|
||||||
if($next > time()) {
|
if($next > time()) {
|
||||||
logger('statistics_json_cron: calculation intervall not reached');
|
logger('statistics_json_cron: calculation intervall not reached');
|
||||||
return;
|
// return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger('statistics_json_cron: cron_start');
|
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);
|
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))
|
if (!is_array($posts))
|
||||||
$local_posts = -1;
|
$local_posts = -1;
|
||||||
|
|
Loading…
Reference in a new issue