summaryrefslogtreecommitdiff
path: root/includes/model/Room_model.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-12-29 17:57:16 +0100
committerPhilip Häusler <msquare@notrademark.de>2015-12-29 17:57:16 +0100
commitb479cdaef8c51e5230048bac82d00696c2a2b61a (patch)
tree0663d0a3b0ef9e4de9d76912b75b7bfcf82b1be5 /includes/model/Room_model.php
parent522546795b04d946e34b07a44bdb7cd2a4a8cfac (diff)
fix room creation
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 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;