From 60890feca08b8c93375ae5680010cbaa0fd6845c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 21 Apr 2016 09:50:25 +0100 Subject: [PATCH] wp table --- lib/php/db/table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 721e9449..09660aa8 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -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(); -- 2.47.3