diff --git a/app/Models/User/UpdateCountPosts.php b/app/Models/User/UpdateCountPosts.php index e620fd7f1cb6c91739e91dc90b7ae5190de6acb7..e7cbed5a42194691d5dac46cc413db486ce555b8 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)';