diff options
author | msquare <msquare@notrademark.de> | 2017-07-23 11:46:54 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-23 11:46:54 +0200 |
commit | a157004f4aefaa5e2265f852f9432becedee1d66 (patch) | |
tree | c47915a311371afa7aa962655fd5ff1ff2ab5e64 /includes/controller/shift_entries_controller.php | |
parent | 36446dd644ff865d1d63aab0ba4c670ce2b277d1 (diff) |
handle failed db queries in Db class
Diffstat (limited to 'includes/controller/shift_entries_controller.php')
-rw-r--r-- | includes/controller/shift_entries_controller.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php index 38aad5bb..54c57332 100644 --- a/includes/controller/shift_entries_controller.php +++ b/includes/controller/shift_entries_controller.php @@ -130,7 +130,7 @@ function shift_entry_add_controller() } $comment = strip_request_item_nl('comment'); - $result = ShiftEntry_create([ + ShiftEntry_create([ 'SID' => $shift_id, 'TID' => $selected_type_id, 'UID' => $user_id, @@ -138,9 +138,6 @@ function shift_entry_add_controller() 'freeloaded' => $freeloaded, 'freeload_comment' => $freeload_comment ]); - if ($result === false) { - engelsystem_error('Unable to create shift entry.'); - } if ( $type['restricted'] == 0 |