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/Room_model.php | |
parent | e10e16a96ab1cfaf08bf867ca412767e3d3ca347 (diff) |
reviewed cookies api
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r-- | includes/model/Room_model.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php index 5b9c7a2a..c48abc78 100644 --- a/includes/model/Room_model.php +++ b/includes/model/Room_model.php @@ -3,7 +3,7 @@ /** * Returns room id array */ -function mRoomList() { +function Room_ids() { $room_source = sql_select("SELECT `RID` FROM `Room` WHERE `show` = 'Y'"); if ($room_source === false) return false; @@ -12,13 +12,12 @@ function mRoomList() { return null; } - /** * Returns room by id. * - * @param $id RID + * @param $id RID */ -function mRoom($id) { +function Room($id) { $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`=" . sql_escape($id) . " AND `show` = 'Y' LIMIT 1"); if ($room_source === false) return false; @@ -27,5 +26,4 @@ function mRoom($id) { return null; } - ?> |