From dd6f9e78dd4e3dd05ea40c94c3c6d333dc40fe9d Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:47:41 +0000 Subject: [PATCH] Rename variable --- web/edit_entry_handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/edit_entry_handler.php b/web/edit_entry_handler.php index 67cd0b10e..05f768523 100644 --- a/web/edit_entry_handler.php +++ b/web/edit_entry_handler.php @@ -383,11 +383,11 @@ function invalid_booking(string $message) : void // the default applies, whether or not the user is an admin. if ($private_enabled) { - $isprivate = (!is_book_admin() && $private_mandatory) ? $private_default : (bool) $private; + $is_private = (!is_book_admin() && $private_mandatory) ? $private_default : (bool) $private; } else { - $isprivate = ($private_mandatory) ? $private_default : false; + $is_private = ($private_mandatory) ? $private_default : false; } // Make sure the area corresponds to the room that is being booked @@ -794,7 +794,7 @@ function invalid_booking(string $message) : void // (Note: the statuses fields are the only ones that can differ by room) // Privacy status - $booking['private'] = (bool) $isprivate; + $booking['private'] = (bool) $is_private; // If we are using booking approvals then we need to work out whether the // status of this booking is approved. If the user is allowed to approve