diff --git a/lib/classes/calendar/SingleCalendar.php b/lib/classes/calendar/SingleCalendar.php index bd968262c1194a82f1950f5e2abe3f253b54290b..938db1a134a238d047ecbef3573995e7f14257dc 100644 --- a/lib/classes/calendar/SingleCalendar.php +++ b/lib/classes/calendar/SingleCalendar.php @@ -1234,13 +1234,14 @@ class SingleCalendar $properties = $event->getProperties(); if (is_array($restrictions)) { foreach ($restrictions as $property_name => $restriction) { - if (is_array($restriction) && isset($properties[mb_strtoupper($property_name)])) { - return in_array($properties[mb_strtoupper($property_name)], $restriction); - } else if ($restriction != '') { - return isset($properties[mb_strtoupper($property_name)]) && $properties[mb_strtoupper($property_name)] === $restriction; + if (isset($properties[mb_strtoupper($property_name)])) { + if (is_array($restriction)) { + return in_array($properties[mb_strtoupper($property_name)], $restriction); + } else if ($restriction != '') { + return $properties[mb_strtoupper($property_name)] == $restriction; + } } } - return true; } return true; }