]> 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 74df3786f01408ebb33e8528495e4fdc1dc7201d..2bd2f41f60ff320017353e88329fa70485e4b75c 100644 (file)
@@ -5,6 +5,7 @@
  * Description: Generates some statistics for http://the-federation.info/
  * Version: 0.2
  * Author: Michael Vogel <https://pirati.ca/profile/heluecht>
+ * 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;