summaryrefslogtreecommitdiff
path: root/includes/model
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model')
-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)