Skip to content

Commit a50f7b5

Browse files
author
buba
committed
FIx contact is not an object
1 parent 7337b23 commit a50f7b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/DefaultController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ public function actionIndex($contactId = null)
8888
if (empty($contact)) {
8989
throw new NotFoundHttpException();
9090
}
91-
$this->view->title = $contact->name;
91+
$this->view->title = $contact['name'];
9292
/** @var $messageClass Message */
9393
$messageClass = $this->messageClass;
94-
$messageDataProvider = $messageClass::get($user->id, $contact->id, 10);
95-
$users = $this->getUsers([$user->id, $contact->id]);
94+
$messageDataProvider = $messageClass::get($user->id, $contact['id'], 10);
95+
$users = $this->getUsers([$user->id, $contact['id']]);
9696
return $this->render(
9797
'index.twig',
9898
compact('conversationDataProvider', 'messageDataProvider', 'users', 'user', 'contact', 'current')

0 commit comments

Comments
 (0)