From 94dced8024a2a29855af35859b823b81412dad33 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 May 2007 04:49:57 +0000 Subject: [PATCH] "fix for bug #747: Postgres SQL error searching tracker items" --- etemplate/inc/class.so_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 90544887d9..aa0220360d 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -680,7 +680,7 @@ class so_sql } elseif (!$need_full_no_count && (!$join || stripos($join,'LEFT JOIN')!==false)) { - $this->db->select($this->table_name,'COUNT(*)',$query,__LINE__,__FILE__); + $this->db->select($this->table_name,'COUNT(*)',$query,__LINE__,__FILE__,false,'',false,0,$join); $this->total = $this->db->next_record() ? (int) $this->db->f(0) : false; } else // cant do a count, have to run the query without limit