From 8c5a5dd9b1ae08707fa4215889a08f560a3f9d8a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 5 Feb 2018 16:49:37 +0000 Subject: [PATCH] etc/dbq/ldap.php --- lib/php/db/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) { -- 2.47.3