Преглед изворни кода

#3948 Events: PHP errors when date fields are empty

Alex Trofimov пре 4 година
родитељ
комит
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);
 
-        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;
 
         $oDateStart = new DateTime('@' . $this->_aContentInfo['date_start']);