From 1706e94b8fdbfec11bf0632883349fe491e6ca1c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 30 Jun 2016 16:10:04 +0100 Subject: [PATCH] fix bug --- lib/php/db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/php/db.php b/lib/php/db.php index 00edc87f..f21c6e96 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -156,6 +156,7 @@ 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); -- 2.47.3