"fix for using GroupDAV with LDAP as addressbook backend"

This commit is contained in:
Ralf Becker 2009-08-07 07:19:57 +00:00
parent 195e55bee8
commit 02edb9ec96

View File

@ -324,7 +324,7 @@ class addressbook_groupdav extends groupdav_handler
*/
function read($id)
{
return $this->bo->read(is_numeric($id) ? $id : array('uid' => $id));
return $this->bo->read(self::PATH_ATTRIBUTE == 'id' ? $id : array(self::PATH_ATTRIBUTE => $id));
}
/**
@ -338,4 +338,4 @@ class addressbook_groupdav extends groupdav_handler
{
return $this->bo->check_perms($acl,$contact);
}
}
}