summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-10-04 18:36:57 +0200
committermsquare <msquare@notrademark.de>2016-10-04 18:36:57 +0200
commitaa628208ec6b4f484b37df44b3126fb28ab3f68e (patch)
tree14d93fe8cd3516a11521918eb9a545dde31589ba /includes/model
parent676f5e1627a64b770da0d6a1ce65aacf34335214 (diff)
reduce complexity of shift view
Diffstat (limited to 'includes/model')
-rw-r--r--includes/model/Shifts_model.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php
index 26dbbecb..52ced0fe 100644
--- a/includes/model/Shifts_model.php
+++ b/includes/model/Shifts_model.php
@@ -57,7 +57,11 @@ function Shifts_by_ShiftsFilter(ShiftsFilter $shiftsFilter, $user) {
$SQL .= "
ORDER BY `start`";
- return sql_select($SQL);
+ $result = sql_select($SQL);
+ if ($result === false) {
+ engelsystem_error("Unable to load shifts by filter.");
+ }
+ return $result;
}
/**