From a50f785224337e920bd42f4c7114fdb68e9b79d0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Feb 2013 10:30:44 +0000 Subject: [PATCH] fixed wrong call name2id to get account_lid of owner, causing lot of database access and returning nothing, as account_id for given --- phpgwapi/inc/class.groupdav_handler.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.groupdav_handler.inc.php b/phpgwapi/inc/class.groupdav_handler.inc.php index a35641ef53..e3aea35f99 100644 --- a/phpgwapi/inc/class.groupdav_handler.inc.php +++ b/phpgwapi/inc/class.groupdav_handler.inc.php @@ -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.'/');