|
|
@@ -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)
|