From fcf1de6a1c66f35401d01a7e3fc01395840106e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Mon, 22 Mar 2010 15:04:21 +0000 Subject: [PATCH] Cleanup GroupDAV code --- phpgwapi/inc/class.groupdav.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.groupdav.inc.php b/phpgwapi/inc/class.groupdav.inc.php index d92a862288..be7f15f570 100644 --- a/phpgwapi/inc/class.groupdav.inc.php +++ b/phpgwapi/inc/class.groupdav.inc.php @@ -839,7 +839,7 @@ class groupdav extends HTTP_WebDAV_Server } $parts = explode('/', $this->_unslashify($path)); - if ($this->accounts->name2id($parts[0])) + if (($account_id = $this->accounts->name2id($parts[0], 'account_lid'))) { // /$user/$app/... $user = array_shift($parts); @@ -850,7 +850,7 @@ class groupdav extends HTTP_WebDAV_Server if ($user) { $user_prefix = '/'.$user; - $user = $this->accounts->name2id($user,'account_lid',$app != 'addressbook' ? 'u' : null); + $user = $account_id; } else {