summaryrefslogtreecommitdiff
path: root/includes/model/Room_model.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-01-05 19:35:01 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-01-05 19:35:01 +0100
commit27ff879f511117587c7633b109974b6ff205eaa0 (patch)
tree3a29781336ed7c747bd682b1e87fc6a3aed13273 /includes/model/Room_model.php
parent6664433fabc8d2173c74c74bc30f569e68228fa2 (diff)
cookie-0007-API-getRoom-show-real-rooms.patch
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r--includes/model/Room_model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php
index fea241a6..5b9c7a2a 100644
--- a/includes/model/Room_model.php
+++ b/includes/model/Room_model.php
@@ -4,7 +4,7 @@
* Returns room id array
*/
function mRoomList() {
- $room_source = sql_select("SELECT `RID` FROM `Room`");
+ $room_source = sql_select("SELECT `RID` FROM `Room` WHERE `show` = 'Y'");
if ($room_source === false)
return false;
if (count($room_source) > 0)
@@ -19,7 +19,7 @@ function mRoomList() {
* @param $id RID
*/
function mRoom($id) {
- $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`=" . sql_escape($id) . " LIMIT 1");
+ $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`=" . sql_escape($id) . " AND `show` = 'Y' LIMIT 1");
if ($room_source === false)
return false;
if (count($room_source) > 0)