Fix persisting notification messages in the session

This commit is contained in:
Johannes Meyer 2014-09-17 11:11:10 +02:00
parent 635b802a2b
commit 028a6c442b

View File

@ -75,13 +75,11 @@ class Notification
return;
}
$mo = (object) array(
$messages = Session::getSession()->getByRef('messages');
$messages[] = (object) array(
'type' => $type,
'message' => $message,
);
$session = Session::getSession();
$session->messages[] = $mo;
}
public function hasMessages()