From 3960fcc0aec3e6ec2ad65c66006e69bd135c7d85 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Nov 2005 20:40:44 +0000 Subject: [PATCH] implemented the same default, as for the sql class: everything which is not 'accounts' or 'groups' gives a list of both --- phpgwapi/inc/class.accounts_ldap.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index a168084ca1..96904ffb6e 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -458,7 +458,7 @@ //print "\$_type=$_type, \$start=$start , \$sort=$sort, \$order=$order, \$query=$query, \$offset=$offset, \$query_type=$query_type
"; $query = strtolower($query); - if($_type == 'accounts' || $_type == 'both') + if($_type != 'groups') { $filter = "(&(uidnumber=*)(phpgwaccounttype=u)"; if (!empty($query) && $query != '*') @@ -511,7 +511,7 @@ } } } - if ($_type == 'groups' || $_type == 'both') + if ($_type != 'accounts') { if(empty($query) || $query == '*') {