From 89567f7aa7d6abe602d870f1168635ffcb40f3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vieilledent?= Date: Tue, 30 Jun 2015 16:59:13 +0200 Subject: [PATCH] EZP-24450: Fixed session issue caused by 367c6a9 --- Notification/NotificationPool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Notification/NotificationPool.php b/Notification/NotificationPool.php index eb30916d1..230698068 100644 --- a/Notification/NotificationPool.php +++ b/Notification/NotificationPool.php @@ -78,6 +78,8 @@ private function translateMessage(TranslatableNotificationMessage $message) public function onKernelResponse(FilterResponseEvent $event) { - $this->session->getFlashBag()->set('notification', $this->notifications); + if ($this->notifications) { + $this->session->getFlashBag()->set('notification', $this->notifications); + } } }