From a0b77c7ffae730280664d930ccaa6de3e41f600e Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Mon, 30 Dec 2024 13:41:18 +0100 Subject: [PATCH] Fix phpstan for color on assigned event --- htdocs/comm/action/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 5ed3cb35e80..58944ca8167 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -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)) {