$sri = ldap_search($this->ds,$this->group_context,'(&(objectClass=posixGroup)(memberuid='.ldap::quote($account_lid).'))',array('cn','gidnumber'));
$memberships = array();
- foreach(ldap_get_entries($this->ds, $sri) as $key => $data)
+ foreach((array)ldap_get_entries($this->ds, $sri) as $key => $data)
{
if ($key === 'count') continue;
@@ -959,7 +959,12 @@
*/
function members($gid)
{
- if (!is_numeric($gid)) return false;
+ if (!is_numeric($gid))
+ {
+ // try to recover
+ $gid = $this->name2id($gid,'account_lid','g');
+ if (!is_numeric($gid)) return false;
+ }
$gid = abs($gid); // our gid is negative!
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@... https://lists.sourceforge.net/lists/listinfo/egroupware-cvs