mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-19 19:01:20 +01:00
Fixes
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user