From 41bd5e4e5024838fa182211d085d7812a8740bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blon=C4=8F=C3=A1k?= Date: Thu, 12 Jan 2017 22:11:50 +0100 Subject: [PATCH] #2539 - fixed doubled push notifications --- include/classes/pushnotification.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/classes/pushnotification.class.php b/include/classes/pushnotification.class.php index 5c8e3ce3..40244bec 100644 --- a/include/classes/pushnotification.class.php +++ b/include/classes/pushnotification.class.php @@ -144,9 +144,10 @@ $message = false; foreach (array('/mail/push_notifications/', '/mail/notifications/') as $dir){ - $this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl'); + $this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl'); try { $message = $this->smarty->fetch($templateFile); + break; } catch (SmartyException $e){ } @@ -168,4 +169,3 @@ $pushnotification->setConfig($config); $pushnotification->setSetting($setting); $pushnotification->setErrorCodes($aErrorCodes); - \ No newline at end of file