diff options
author | msquare <msquare@notrademark.de> | 2016-10-04 18:36:57 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-10-04 18:36:57 +0200 |
commit | aa628208ec6b4f484b37df44b3126fb28ab3f68e (patch) | |
tree | 14d93fe8cd3516a11521918eb9a545dde31589ba /includes/model | |
parent | 676f5e1627a64b770da0d6a1ce65aacf34335214 (diff) |
reduce complexity of shift view
Diffstat (limited to 'includes/model')
-rw-r--r-- | includes/model/Shifts_model.php | 6 |
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; } /** |