From c6ed8a158acaf88c7595290402d9f22ab8492abf Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Sun, 20 Aug 2023 19:12:00 +0100 Subject: [PATCH] Simplify code --- web/edit_entry_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/edit_entry_handler.php b/web/edit_entry_handler.php index bb7770073c..9208ea8782 100644 --- a/web/edit_entry_handler.php +++ b/web/edit_entry_handler.php @@ -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 {