colors) { // $encryptedUser = $Calendar->user->id; //} else { // $encryptedUser = ""; //} if ($Calendar[0]->colors) { $Calendar_colors = json_decode($Calendar[0]->colors, true); } else { $encryptedUser = ""; } $rights = json_decode($Calendar[0]->rights, true); $colorCounter = 0; if (!is_array($Calendar_colors[$Calendar[0]->go_calendar_id])) { $Calendar_colors[$Calendar[0]->go_calendar_id]['bgcolor'] = $standardCalendarColors[$colorCounter]; $Calendar_colors[$Calendar[0]->go_calendar_id]['txtcolor'] = '#000000'; $colorCounter++; } $specialCalendars = array(999 => 'Abwesenheiten', 998 => 'Geburtstage', 997 => 'Feiertage'); foreach ($rights as $key => $right) : $CalArray[$CalendarAll[$key]->user->name] = $key; endforeach; ?>