From 57e4a4440f2d8d4b8a1b56bcf703eabb118423db Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 21 Jan 2001 02:46:17 +0000 Subject: [PATCH] Quick fix to broken search. --- addressbook/inc/class.addressbook_ldap.inc.php | 4 ++-- addressbook/inc/class.addressbook_sql.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addressbook/inc/class.addressbook_ldap.inc.php b/addressbook/inc/class.addressbook_ldap.inc.php index 5f81395f83..a402aa5090 100644 --- a/addressbook/inc/class.addressbook_ldap.inc.php +++ b/addressbook/inc/class.addressbook_ldap.inc.php @@ -141,7 +141,7 @@ return; } - function count_entries() { + function count_entries($query,$filter,$filtermethod) { global $phpgw,$phpgw_info; if ($phpgw_info["apps"]["timetrack"]["enabled"]) { $phpgw->db->query("SELECT count(*) " @@ -199,7 +199,7 @@ } if ($query) { - $this->searchreturn=$this->count_entries(); + $this->searchreturn=$this->count_entries($query,$filter,$filtermethod); } else { $this->searchreturn=""; $phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__); diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index 5f81395f83..a402aa5090 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -141,7 +141,7 @@ return; } - function count_entries() { + function count_entries($query,$filter,$filtermethod) { global $phpgw,$phpgw_info; if ($phpgw_info["apps"]["timetrack"]["enabled"]) { $phpgw->db->query("SELECT count(*) " @@ -199,7 +199,7 @@ } if ($query) { - $this->searchreturn=$this->count_entries(); + $this->searchreturn=$this->count_entries($query,$filter,$filtermethod); } else { $this->searchreturn=""; $phpgw->db->query("select count(*) from addressbook where $filtermethod",__LINE__,__FILE__);