This commit is contained in:
Alex Solomaha
2017-03-16 23:37:03 +02:00
parent 186e1c8e70
commit 71b1de5e6d
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -44,7 +44,7 @@ $this->title = 'Профиль ' . $user->username;
</tr>
<tr>
<th scope="row">Комната</th>
<td><?= $user->room->name ?></td>
<td><?= $user->room ? $user->room->name : null ?></td>
</tr>
<?php if (Yii::$app->user->id === $user->id): ?>
<tr>