X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=statistics_json%2Fstatistics_json.php;h=2bd2f41f60ff320017353e88329fa70485e4b75c;hb=18784a484b04b5f74e6d4dca516b2dc20cffe953;hp=74df3786f01408ebb33e8528495e4fdc1dc7201d;hpb=ff98d0218ad03b8899adb037d174d7f08d6db5f6;p=friendica-addons.git diff --git a/statistics_json/statistics_json.php b/statistics_json/statistics_json.php index 74df3786..2bd2f41f 100644 --- a/statistics_json/statistics_json.php +++ b/statistics_json/statistics_json.php @@ -5,6 +5,7 @@ * Description: Generates some statistics for http://the-federation.info/ * Version: 0.2 * Author: Michael Vogel + * Status: Unsupported */ function statistics_json_install() { @@ -109,11 +110,11 @@ function statistics_json_cron($a,$b) { $month = time() - (30 * 24 * 60 * 60); foreach ($users AS $user) { - if ((strtotime($user['login_date']) > $halfyear) OR + if ((strtotime($user['login_date']) > $halfyear) || (strtotime($user['lastitem_date']) > $halfyear)) ++$active_users_halfyear; - if ((strtotime($user['login_date']) > $month) OR + if ((strtotime($user['login_date']) > $month) || (strtotime($user['lastitem_date']) > $month)) ++$active_users_monthly;