diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-01-07 15:50:16 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-01-07 15:50:16 +0100 |
commit | 239c2b168411c110b1f884f6ef0df172cb913b4b (patch) | |
tree | 2d0e6721b2818afb24701428fb83d5843985d288 /includes/model/Shifts_model.php | |
parent | e10e16a96ab1cfaf08bf867ca412767e3d3ca347 (diff) |
reviewed cookies api
Diffstat (limited to 'includes/model/Shifts_model.php')
-rw-r--r-- | includes/model/Shifts_model.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index df47b967..8cd4b3c2 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -1,9 +1,10 @@ <?php /** + * TODO: $_REQUEST is not allowed in model! * Returns Shift id array */ -function mShiftList() { +function Shifts_filtered() { global $_REQUEST; $filter = ""; @@ -49,7 +50,7 @@ function mShiftList() { * * @param $id Shift ID */ -function mShift($id) { +function Shift($id) { $shifts_source = sql_select("SELECT * FROM `Shifts` WHERE `SID`=" . sql_escape($id) . " LIMIT 1"); $shiftsEntry_source = sql_select("SELECT `TID` , `UID` , `freeloaded` FROM `ShiftEntry` WHERE `SID`=" . sql_escape($id) ); |