From d5c279c3535c2166d996b962e02e9a5db7a249d2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 14 Apr 2007 09:23:04 +0000 Subject: [PATCH] "fix for bug reported on the german list: group-filter not working in admin >> edit accounts" --- addressbook/inc/class.socontacts_sql.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.socontacts_sql.inc.php b/addressbook/inc/class.socontacts_sql.inc.php index b869548f54..fff69c7b41 100644 --- a/addressbook/inc/class.socontacts_sql.inc.php +++ b/addressbook/inc/class.socontacts_sql.inc.php @@ -318,7 +318,11 @@ class socontacts_sql extends so_sql $join .= " JOIN $this->ab2list_table ON $this->table_name.contact_id=$this->ab2list_table.contact_id AND list_id=".(int)$filter['list']; unset($filter['list']); } - return parent::search($criteria,$only_keys,$order_by,$extra_cols,$wildcard,$empty,$op,$start,$filter,$join,$need_full_no_count); + $rows =& parent::search($criteria,$only_keys,$order_by,$extra_cols,$wildcard,$empty,$op,$start,$filter,$join,$need_full_no_count); + + if ($start === false) $this->total = is_array($rows) ? count($rows) : 0; // so_sql sets total only for $start !== false! + + return $rows; } /**