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