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/shifts_controller.php | |
parent | 36446dd644ff865d1d63aab0ba4c670ce2b277d1 (diff) |
handle failed db queries in Db class
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r-- | includes/controller/shifts_controller.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php index 21c6e160..b3ebd18b 100644 --- a/includes/controller/shifts_controller.php +++ b/includes/controller/shifts_controller.php @@ -135,10 +135,7 @@ function shift_edit_controller() $shift['start'] = $start; $shift['end'] = $end; - $result = Shift_update($shift); - if ($result === false) { - engelsystem_error('Unable to update shift.'); - } + Shift_update($shift); NeededAngelTypes_delete_by_shift($shift_id); $needed_angel_types_info = []; foreach ($needed_angel_types as $type_id => $count) { |