From e9213fc3b8a705adbf83e764bc189b447511505b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 30 Jun 2016 16:10:44 +0100 Subject: [PATCH] fix bug --- lib/php/db.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index f21c6e96..67b97375 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -156,10 +156,9 @@ class Db extends nb { # Type queries if ($sql = $this->type('exec')) { - if (empty($sql)) continue; if (is_scalar($sql)) $sql = array($sql); foreach ($sql as $s) { - $this->conn->exec($s); + if (!empty($s)) $this->conn->exec($s); } } -- 2.47.3