Skip to content

Commit

Permalink
FIx contact is not an object
Browse files Browse the repository at this point in the history
  • Loading branch information
buba committed May 29, 2016
1 parent 7337b23 commit a50f7b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public function actionIndex($contactId = null)
if (empty($contact)) {
throw new NotFoundHttpException();
}
$this->view->title = $contact->name;
$this->view->title = $contact['name'];
/** @var $messageClass Message */
$messageClass = $this->messageClass;
$messageDataProvider = $messageClass::get($user->id, $contact->id, 10);
$users = $this->getUsers([$user->id, $contact->id]);
$messageDataProvider = $messageClass::get($user->id, $contact['id'], 10);
$users = $this->getUsers([$user->id, $contact['id']]);
return $this->render(
'index.twig',
compact('conversationDataProvider', 'messageDataProvider', 'users', 'user', 'contact', 'current')
Expand Down

0 comments on commit a50f7b5

Please sign in to comment.