diff options
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/shifts_controller.php | 3 | ||||
-rw-r--r-- | includes/controller/shifttypes_controller.php | 3 | ||||
-rw-r--r-- | includes/controller/users_controller.php | 4 |
3 files changed, 0 insertions, 10 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php index b3ebd18b..92823b11 100644 --- a/includes/controller/shifts_controller.php +++ b/includes/controller/shifts_controller.php @@ -350,9 +350,6 @@ function shifts_json_export_all_controller() } $shifts_source = Shifts(); - if ($shifts_source === false) { - engelsystem_error('Unable to load shifts.'); - } header('Content-Type: application/json; charset=utf-8'); raw_output(json_encode($shifts_source)); diff --git a/includes/controller/shifttypes_controller.php b/includes/controller/shifttypes_controller.php index f4791511..9cf292ee 100644 --- a/includes/controller/shifttypes_controller.php +++ b/includes/controller/shifttypes_controller.php @@ -143,9 +143,6 @@ function shifttype_controller() function shifttypes_list_controller() { $shifttypes = ShiftTypes(); - if ($shifttypes === false) { - engelsystem_error('Unable to load shifttypes.'); - } return [ shifttypes_title(), diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index 05b97716..832d93f0 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -259,10 +259,6 @@ function users_list_controller() } $users = Users($order_by); - if ($users === false) { - engelsystem_error('Unable to load users.'); - } - foreach ($users as &$user) { $user['freeloads'] = count(ShiftEntries_freeloaded_by_user($user)); } |