From 5a62c7e3594c60b7f37c417d5a004010ffb8c767 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 21 Mar 2014 16:05:35 +0100 Subject: Add ACI form widget (Request #1782) --- lib/api/kolab_api_service_user.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/api/kolab_api_service_user.php') diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php index 6cf4483..acdaec0 100644 --- a/lib/api/kolab_api_service_user.php +++ b/lib/api/kolab_api_service_user.php @@ -178,11 +178,11 @@ class kolab_api_service_user extends kolab_api_service $result = $this->parse_result_attributes('user', $result); if (empty($result['ou'])) { - $_dn = ldap_explode_dn($result_dn, 0); + $dn = ldap_explode_dn($result['entrydn'], 0); // pop the count and rdn - unset($_dn['count']); - unset($_dn[0]); - $result['ou'] = implode(',', $_dn); + unset($dn['count']); + unset($dn[0]); + $result['ou'] = implode(',', $dn); } Log::trace("user.info on " . $getdata['id'] . " parsed result: " . var_export($result, TRUE)); -- cgit v1.1