diff --git a/modules/admin/views/user/view.php b/modules/admin/views/user/view.php index c67e750..2c47286 100644 --- a/modules/admin/views/user/view.php +++ b/modules/admin/views/user/view.php @@ -40,7 +40,7 @@ $this->params['breadcrumbs'][] = $this->title; ], [ 'attribute' => 'room_id', - 'value' => $model->room->name, + 'value' => $model->room ? $model->room->name : null, ], 'api_key', 'created_at:datetime', diff --git a/views/profile/index.php b/views/profile/index.php index 8993b78..b57999b 100644 --- a/views/profile/index.php +++ b/views/profile/index.php @@ -44,7 +44,7 @@ $this->title = 'Профиль ' . $user->username;