fixed wrong call name2id to get account_lid of owner, causing lot of database access and returning nothing, as account_id for given

This commit is contained in:
Ralf Becker 2013-02-25 10:31:14 +00:00
parent c6398686f5
commit c6cb7196dc

View File

@ -561,7 +561,7 @@ abstract class groupdav_handler
}
}
if ($this->groupdav->prop_requested('owner') === true && !isset($props['owner']) &&
($account_lid = $this->accounts->name2id($entry['owner'])))
($account_lid = $this->accounts->id2name($entry['owner'])))
{
$type = $this->accounts->get_type($entry['owner']) == 'u' ? 'users' : 'groups';
$props['owner'] = HTTP_WebDAV_Server::mkprop('href', $this->base_uri.'/principals/'.$type.'/'.$account_lid.'/');