From ca37de95daa065c25b7a4b227b539c18e713e00b Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 28 Dec 2014 14:56:02 +0100 Subject: fix shift update --- includes/model/Room_model.php | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/model/Room_model.php') diff --git a/includes/model/Room_model.php b/includes/model/Room_model.php index 49ad0c60..523436c6 100644 --- a/includes/model/Room_model.php +++ b/includes/model/Room_model.php @@ -19,6 +19,7 @@ function Room_ids() { */ function Room($id) { $room_source = sql_select("SELECT * FROM `Room` WHERE `RID`='" . sql_escape($id) . "' AND `show` = 'Y' LIMIT 1"); + if ($room_source === false) return false; if (count($room_source) > 0) -- cgit v1.2.3-54-g00ecf