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