Commit 2b7c5db8f9c997de8741cbe3f2543777a2f6f02d
1 parent
849f4839
- visit
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
backend/views/visit/_form.php
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | ] | 31 | ] |
| 32 | ) ?> | 32 | ) ?> |
| 33 | <?php | 33 | <?php |
| 34 | - if ($model->entity !== null){ | 34 | + if (!empty($model->entity)){ |
| 35 | $entity = call_user_func(array($model->entity, 'find'))->where(['id' => $model->entity_id])->one(); | 35 | $entity = call_user_func(array($model->entity, 'find'))->where(['id' => $model->entity_id])->one(); |
| 36 | echo ("<p>".$entity->title."</p>"); | 36 | echo ("<p>".$entity->title."</p>"); |
| 37 | } | 37 | } |