Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Oct 31, 2024
1 parent c0c000e commit dd6f9e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/edit_entry_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd6f9e7

Please sign in to comment.