]> git.nbdom.net Git - nb.git/commitdiff
etc/dbq/ldap.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 5 Feb 2018 16:49:37 +0000 (16:49 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 5 Feb 2018 16:49:37 +0000 (16:49 +0000)
lib/php/db/table.php

index 9be8e2180845d4ce68dc270521c2fb1bdb994261..02a3a8f6bcf10eafe5ca7a72a332981ec15b5d46 100644 (file)
@@ -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')) {