]> git.nbdom.net Git - nb.git/commitdiff
wp table
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 21 Apr 2016 08:50:25 +0000 (09:50 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 21 Apr 2016 08:50:25 +0000 (09:50 +0100)
lib/php/db/table.php

index 721e9449dd9812ab2bd6961d92dddfe11b780314..09660aa86212878a49de8b8de427f3a430e31a84 100644 (file)
@@ -626,7 +626,7 @@ Class Table extends nb {
     //
 # NB 28.03.16     $this->sql = $sql;
     $this->debug(preg_replace('/(,|FROM|WHERE|HAVING|GROUP|ORDER)/i',"\n\\1",$sql),1);
-    return array($sql,$where,$limit);
+    return array($sql,$where,$limit,$select_count);
   }
 
   public function rows(&$opt=array(),$opt_by_val=null) {
@@ -636,7 +636,7 @@ Class Table extends nb {
     $format = $this->p('format');
     if (!$format) bye("Invalid parameter!");
 
-    list($sql,$where,$limit) = $this->rows_sql($opt);
+    list($sql,$where,$limit,$select_count) = $this->rows_sql($opt);
     $st = $this->db()->conn->prepare($sql);
     $st->execute();