From 4aa40f97beafc840beb4e96288da6b140424711d Mon Sep 17 00:00:00 2001
From: Moritz Strohm <strohm@data-quest.de>
Date: Tue, 5 Dec 2023 14:30:37 +0100
Subject: [PATCH] fixed method call to in_array, re #3225

---
 app/controllers/resources/booking.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/resources/booking.php b/app/controllers/resources/booking.php
index 0e09d8c73fa..294aeaa6aa1 100644
--- a/app/controllers/resources/booking.php
+++ b/app/controllers/resources/booking.php
@@ -1149,7 +1149,7 @@ class Resources_BookingController extends AuthenticatedController
 
             //Validation:
 
-            if (!in_aray($this->booking_type, [
+            if (!in_array($this->booking_type, [
                 ResourceBooking::TYPE_NORMAL,
                 ResourceBooking::TYPE_RESERVATION,
                 ResourceBooking::TYPE_LOCK,
-- 
GitLab