Explorar el Código

#3948 Events: PHP errors when date fields are empty

Alex Trofimov hace 4 años
padre
commit
cd96f5df66
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']);