parent
51a03d6c13
commit
488982bb1f
2 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,6 @@ class View extends Action
|
|||
}
|
||||
}
|
||||
|
||||
unset($userIds[0]); // гостя загружать не надо
|
||||
$this->c->users->loadByIds($userIds);
|
||||
|
||||
$offset = ($arg->page - 1) * $this->c->user->disp_posts;
|
||||
|
|
|
@ -56,7 +56,9 @@ class Users extends Manager
|
|||
$data = [];
|
||||
|
||||
foreach ($ids as $id) {
|
||||
if ($this->isset($id)) {
|
||||
if (0 === $id) { // это гость, его грузим через guest()
|
||||
continue;
|
||||
} elseif ($this->isset($id)) {
|
||||
$result[$id] = $this->get($id);
|
||||
} else {
|
||||
$result[$id] = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue