Fix phpstan for color on assigned event

This commit is contained in:
VESSILLER 2024-12-30 13:41:18 +01:00
parent 7278b7f15a
commit a0b77c7ffa

View file

@ -1947,9 +1947,9 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
//var_dump($cacheusers[$event->userownerid]->color);
// We decide to choose color of owner of event (event->userownerid is user id of owner, event->userassigned contains all users assigned to event)
// if (!empty($cacheusers[$event->userownerid]->color)) {
// $color = $cacheusers[$event->userownerid]->color;
// }
if (!empty($cacheusers[$event->userownerid]->color)) {
$color = $cacheusers[$event->userownerid]->color;
}
} elseif ($event->type_code == 'ICALEVENT') { // Event come from external ical file
$numical++;
if (!empty($event->icalname)) {