浏览代码

Update User\UpdateCountTopics

Visman 3 年之前
父节点
当前提交
6acd480471
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)';