Fix on summit

fix null exception

Change-Id: I79d14e00b5c07f552e9e1b3744a0b70507d60434
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2020-12-04 10:43:43 -03:00
parent f6b0e97169
commit 172febf179

View File

@ -4989,7 +4989,6 @@ SQL;
public function getSummitDays():array {
$beginDate = $this->getLocalBeginDate();
$endDate = $this->getLocalEndDate();
Log::debug(sprintf("Summit::getSummitDays local begin date %s local end date %s", $beginDate->format('Y-m-d H:i:s'), $endDate->format('Y-m-d H:i:s')));
if(is_null($beginDate)) return [];
if(is_null($endDate)) return [];
$beginDate = $beginDate->setTime(0,0,0);