From b479cdaef8c51e5230048bac82d00696c2a2b61a Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Tue, 29 Dec 2015 17:57:16 +0100 Subject: fix room creation --- includes/model/Room_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/model/Room_model.php') 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; -- cgit v1.2.3-54-g00ecf