Visman 3 роки тому
батько
коміт
b3c1ef117f
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      app/Models/Post/View.php

+ 1 - 0
app/Models/Post/View.php

@@ -62,6 +62,7 @@ class View extends Action
             }
             }
         }
         }
 
 
+        unset($userIds[0]); // гостя загружать не надо
         $this->c->users->loadByIds($userIds);
         $this->c->users->loadByIds($userIds);
 
 
         $offset    = ($arg->page - 1) * $this->c->user->disp_posts;
         $offset    = ($arg->page - 1) * $this->c->user->disp_posts;