diff --git a/app/Models/User/UpdateCountPosts.php b/app/Models/User/UpdateCountPosts.php index e620fd7f..e7cbed5a 100644 --- a/app/Models/User/UpdateCountPosts.php +++ b/app/Models/User/UpdateCountPosts.php @@ -35,10 +35,10 @@ class UpdateCountPosts 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)';