Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Aug 20, 2023
1 parent 93ad0c6 commit c6ed8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/edit_entry_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ function invalid_booking(string $message) : void

$just_check = $is_ajax && !$commit;
$this_id = (isset($id)) ? $id : null;
$send_mail = ($no_mail) ? false : need_to_send_mail();
$send_mail = !$no_mail && need_to_send_mail();

try
{
Expand Down

0 comments on commit c6ed8a1

Please sign in to comment.