]> git.mxchange.org Git - friendica-addons.git/blobdiff - statistics_json/statistics_json.php
Additional work for PR 3778
[friendica-addons.git] / statistics_json / statistics_json.php
index 87ffdb00399e2d1af439713d6e509858586ebcfa..2bd2f41f60ff320017353e88329fa70485e4b75c 100644 (file)
@@ -110,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;