summaryrefslogtreecommitdiff
path: root/includes/controller
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-07-28 19:15:52 +0200
committermsquare <msquare@notrademark.de>2017-07-28 19:15:52 +0200
commita0af8d4624be9ca8579817d291036a6727aeb574 (patch)
tree869e7c39a3ec05aa6a4e478b51eb59bbf42746d1 /includes/controller
parent5794c4cab8f6ef0529dfc51343b5ec78b134fb2a (diff)
further switching to db exceptions instead of return false
Diffstat (limited to 'includes/controller')
-rw-r--r--includes/controller/shifts_controller.php3
-rw-r--r--includes/controller/shifttypes_controller.php3
-rw-r--r--includes/controller/users_controller.php4
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));
}