diff options
author | msquare <msquare@notrademark.de> | 2017-07-28 19:15:52 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-28 19:15:52 +0200 |
commit | a0af8d4624be9ca8579817d291036a6727aeb574 (patch) | |
tree | 869e7c39a3ec05aa6a4e478b51eb59bbf42746d1 /includes/pages/admin_shifts.php | |
parent | 5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (diff) |
further switching to db exceptions instead of return false
Diffstat (limited to 'includes/pages/admin_shifts.php')
-rw-r--r-- | includes/pages/admin_shifts.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/includes/pages/admin_shifts.php b/includes/pages/admin_shifts.php index 5b53f9cd..36028792 100644 --- a/includes/pages/admin_shifts.php +++ b/includes/pages/admin_shifts.php @@ -44,9 +44,6 @@ function admin_shifts() // Load shift types $shifttypes_source = ShiftTypes(); - if ($shifttypes_source === false) { - engelsystem_error('Unable to load shift types.'); - } $shifttypes = []; foreach ($shifttypes_source as $shifttype) { $shifttypes[$shifttype['id']] = $shifttype['name']; @@ -319,9 +316,6 @@ function admin_shifts() $shift['URL'] = null; $shift['PSID'] = null; $shift_id = Shift_create($shift); - if ($shift_id === false) { - engelsystem_error('Unable to create shift.'); - } engelsystem_log( 'Shift created: ' . $shifttypes[$shift['shifttype_id']] |