From 8df4c654749d18a7de398742a4bd9175a5a5e773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Gl=C3=B6ggler?= <till@gundk.it> Date: Tue, 5 Oct 2021 10:19:18 +0200 Subject: [PATCH] fixes #261 --- lib/resources/RoomManager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/RoomManager.class.php b/lib/resources/RoomManager.class.php index a362414e2f8..0932d453cee 100644 --- a/lib/resources/RoomManager.class.php +++ b/lib/resources/RoomManager.class.php @@ -592,7 +592,7 @@ class RoomManager } $result = []; - if (is_array($time_ranges)) { + if (!empty($time_ranges)) { //We must check if the room is available: foreach ($filtered_rooms as $room) { $room_is_available = true; -- GitLab