Просмотр исходного кода

#3948 Events: PHP errors when date fields are empty

Alex Trofimov 4 лет назад
Родитель
Сommit
cd96f5df66
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/boonex/events/classes/BxEventsMenuViewActionsAll.php

+ 1 - 1
modules/boonex/events/classes/BxEventsMenuViewActionsAll.php

@@ -27,7 +27,7 @@ class BxEventsMenuViewActionsAll extends BxBaseModGroupsMenuViewActionsAll
     {
     {
         parent::setContentId($iContentId);
         parent::setContentId($iContentId);
 
 
-        if (!$this->_aContentInfo['date_start'] || !$this->_aContentInfo['date_end'])
+        if (!isset($this->_aContentInfo['date_start']) || !$this->_aContentInfo['date_start'] || !isset($this->_aContentInfo['date_end']) || !$this->_aContentInfo['date_end'])
             return;
             return;
 
 
         $oDateStart = new DateTime('@' . $this->_aContentInfo['date_start']);
         $oDateStart = new DateTime('@' . $this->_aContentInfo['date_start']);