summaryrefslogtreecommitdiff
path: root/includes/model/Room_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-07-19 20:52:31 +0200
committerGitHub <noreply@github.com>2017-07-19 20:52:31 +0200
commit0d772ec9082ef780ec67c239eba61e979143ad05 (patch)
treeba68d1f00a0c9fb434f24f03eaaf2b7a8a9ec4e2 /includes/model/Room_model.php
parent20e0765f571ed60aa21c07502ee7efcbe9995a6e (diff)
parent04217834fa4e6f94fec0836a80ea5526b8ebc9bc (diff)
Merge pull request #326 from MyIgel/master
Reapplied missing commits
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r--includes/model/Room_model.php6
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]
);