diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-12-29 17:57:16 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-12-29 17:57:16 +0100 |
commit | b479cdaef8c51e5230048bac82d00696c2a2b61a (patch) | |
tree | 0663d0a3b0ef9e4de9d76912b75b7bfcf82b1be5 /includes/model/Room_model.php | |
parent | 522546795b04d946e34b07a44bdb7cd2a4a8cfac (diff) |
fix room creation
Diffstat (limited to 'includes/model/Room_model.php')
-rw-r--r-- | includes/model/Room_model.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php index 2868916e..6d8a205e 100644 --- a/includes/model/Room_model.php +++ b/includes/model/Room_model.php @@ -22,8 +22,8 @@ function Room_create($name, $from_frab, $public) { $result = sql_query(" INSERT INTO `Room` SET `Name`='" . sql_escape($name) . "', - `FromPentabarf`='" . sql_escape($from_frab ? 'Y' : 'N') . "', - `show`='" . sql_escape($public ? 'Y' : 'N') . "', + `FromPentabarf`='" . sql_escape($from_frab ? 'Y' : '') . "', + `show`='" . sql_escape($public ? 'Y' : '') . "', `Number`=0"); if ($result === false) return false; |