diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-07-17 23:08:15 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-07-17 23:08:15 +0200 |
commit | 317c91a22f736342c52ed643c94d510a100f7fdb (patch) | |
tree | 73c066f0124684b13473320d734e806b310c5043 /includes/model/Room_model.php | |
parent | a2b9edc6a301745a299c8c29cdbbbc795961c9f0 (diff) |
Reapplied "Merge pull request #319 from jwacalex/gh_317_unable_to_edit_hidden_room_in_admin"
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r-- | includes/model/Room_model.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php index c8399bc4..17617b39 100644 --- a/includes/model/Room_model.php +++ b/includes/model/Room_model.php @@ -57,16 +57,16 @@ function Room_create($name, $from_frab, $public, $number = null) * Returns room by id. * * @param int $room_id RID - * @param bool $show_only + * @param bool $onlyVisible * @return array|false */ -function Room($room_id, $show_only = true) +function Room($room_id, $onlyVisible = true) { $room_source = DB::select(' SELECT * FROM `Room` WHERE `RID` = ? - ' . ($show_only ? 'AND `show` = \'Y\'' : ''), + ' . ($onlyVisible ? 'AND `show` = \'Y\'' : ''), [$room_id] ); |