Browse Source

Update User\UpdateCountTopics

Visman 3 years ago
parent
commit
6acd480471
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Models/User/UpdateCountTopics.php

+ 2 - 2
app/Models/User/UpdateCountTopics.php

@@ -35,10 +35,10 @@ class UpdateCountTopics extends Action
             }
         }
         // темы гостя не считаем
-        unset($ids[1]);
+        unset($ids[0]); // ????
 
         if (empty($ids)) {
-            $where = 'u.id != 1';
+            $where = 'u.id > 0';
             $vars  = [];
         } else {
             $where = 'u.id IN (?ai:ids)';