From: Nicolas Boisselier Date: Thu, 30 Jun 2016 15:10:04 +0000 (+0100) Subject: fix bug X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1706e94b8fdbfec11bf0632883349fe491e6ca1c;p=nb.git fix bug --- 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);