Skip to content

Commit 41bd5e4

Browse files
committed
#2539 - fixed doubled push notifications
1 parent c9930d3 commit 41bd5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/classes/pushnotification.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ public function sendNotification($account_id, $template, $aData){
144144

145145
$message = false;
146146
foreach (array('/mail/push_notifications/', '/mail/notifications/') as $dir){
147-
$this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl');
147+
$this->smarty->clearCache($templateFile = TEMPLATE_DIR.$dir.$template.'.tpl');
148148
try {
149149
$message = $this->smarty->fetch($templateFile);
150+
break;
150151
} catch (SmartyException $e){
151152

152153
}
@@ -168,4 +169,3 @@ public function sendNotification($account_id, $template, $aData){
168169
$pushnotification->setConfig($config);
169170
$pushnotification->setSetting($setting);
170171
$pushnotification->setErrorCodes($aErrorCodes);
171-

0 commit comments

Comments
 (0)