diff options
-rw-r--r-- | modules-available/roomplanner/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/roomplanner/page.inc.php b/modules-available/roomplanner/page.inc.php index de917a1a..d22c0054 100644 --- a/modules-available/roomplanner/page.inc.php +++ b/modules-available/roomplanner/page.inc.php @@ -268,7 +268,7 @@ class Page_Roomplanner extends Page $res = Database::exec('INSERT INTO location_roomplan (locationid, roomplan) VALUES (:lid, :plan) ON DUPLICATE KEY UPDATE roomplan = VALUES(roomplan)', ['lid' => $this->locationid, 'plan' => $room->serialize()]); - if (!$res) { + if ($res === false) { if ($isAjax) { die('Error writing config to DB'); } else { |