Fix that retrieving notifications causes them to be dropped entirely

I've broke this when doing some improvements while being
brainless, obviously.
This commit is contained in:
Johannes Meyer 2014-10-15 13:14:51 +02:00
parent 5d44a005a0
commit 2c09ca1623

View File

@ -91,11 +91,12 @@ class Notification
public function getMessages() public function getMessages()
{ {
$session = Session::getSession(); $session = Session::getSession();
if (false === empty($session->messages)) { $messages = $session->messages;
if (false === empty($messages)) {
$session->messages = array(); $session->messages = array();
} }
return $session->messages; return $messages;
} }
final private function __construct() final private function __construct()