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:30:44 +00:00
parent 1d2a4ae065
commit a50f785224

View File

@ -560,7 +560,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.'/');