From 9a6150b2bc5997743806237fb5bc9ad879457955 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 8 Aug 2017 09:15:38 +0100 Subject: [PATCH] lib/php/db.php --- lib/php/db.php | 1 - lib/php/db/table.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/db.php b/lib/php/db.php index 9fb9f064..019560ea 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -330,7 +330,6 @@ class Db extends nb { public function row($sql,$sep=' ') { $query = $this->query($sql); -#bye($sql); $result = $query->fetch(PDO::FETCH_NUM); if (!is_array($result)) return $result; return join($sep,$result); diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 4184b43a..2d9c5738 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1894,6 +1894,7 @@ Class Table extends nb { if (!$this->sql) return; $sql_count = "SELECT COUNT(*) FROM ($this->sql) _table_count" ; + #debug([$this->name,$sql_count]); # NB 08.08.17 if (preg_match('/SELECT.*SELECT|UNION/i',$this->sql)) { # NB 08.08.17 $sql_count = "SELECT COUNT(*) FROM ($this->sql) _table_count" ; # NB 08.08.17 } else { -- 2.47.3