From: Nicolas Boisselier Date: Mon, 5 Feb 2018 16:49:37 +0000 (+0000) Subject: etc/dbq/ldap.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=8c5a5dd9b1ae08707fa4215889a08f560a3f9d8a;p=nb.git etc/dbq/ldap.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 9be8e218..02a3a8f6 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1083,7 +1083,7 @@ Class Table extends nb { $nosql = $this->db()->conf_type('nosql'); if ($nosql) { - $sql = $this->name; + $sql = empty($this->sql) ? $this->name : $this->sql; $fct = $this->db()->conf_type('prepare'); if ($fct) $st = $fct($this,$sql); if (!$fct = $this->db()->conf_type('fetch')) {