fix PHP 8.0 TypeError: Unsupported operand types: bool + array

This commit is contained in:
Ralf Becker 2021-11-15 08:08:42 +01:00
parent 3da9840ca9
commit c32bb61e1c

View File

@ -734,7 +734,7 @@ class calendar_uiviews extends calendar_ui
$days == 1 // Showing just 1 day
)
{
$content['view'][] = (array)$this->tagWholeDayOnTop($this->bo->search($search_params)) +
$content['view'][] = $this->tagWholeDayOnTop($this->bo->search($search_params)) +
array('owner' => $users);
}
else
@ -1055,6 +1055,10 @@ class calendar_uiviews extends calendar_ui
}
}
}
else
{
$dayEvents = []; // search returns false or null for nothing found!
}
return $dayEvents;
}
}