summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/kolab_api_service_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 4d985bb..615ad73 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -172,7 +172,7 @@ class kolab_api_service_user extends kolab_api_service
// normalize result
$result = $this->parse_result_attributes('user', $result);
- if (empty($result['ou'])) {
+ if (!empty($result) && empty($result['ou'])) {
$_dn = ldap_explode_dn($result_dn, 0);
// pop the count and rdn
unset($_dn['count']);