AntonLV 9 vuotta sitten
vanhempi
sitoutus
df03f493a7
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 6 2
      modules/boonex/notifications/classes/BxNtfsTemplate.php

+ 6 - 2
modules/boonex/notifications/classes/BxNtfsTemplate.php

@@ -136,7 +136,9 @@ class BxNtfsTemplate extends BxBaseModNotificationsTemplate
 
     public function getNotificationEmail(&$aEvent)
     {
-        $this->getPost($aEvent);
+        $sEvent = $this->getPost($aEvent);
+        if(empty($sEvent))
+            return;
 
         return $this->parseHtmlByName('et_new_event.html', array(
         	'icon_url' => !empty($aEvent['content']['owner_icon']) ? $aEvent['content']['owner_icon'] : $this->getIconUrl('std-icon.svg'),
@@ -148,7 +150,9 @@ class BxNtfsTemplate extends BxBaseModNotificationsTemplate
 
     public function getNotificationPush(&$aEvent)
     {
-        $this->getPost($aEvent);
+        $sEvent = $this->getPost($aEvent);
+        if(empty($sEvent))
+            return;
 
         $sMessage = preg_replace('/<\/?[a-zA-Z0-9=\'":;\(\)\s_-]+>/i', '"', $aEvent['content_parsed']);
 		if($sMessage)