summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-09-05 09:34:24 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-09-05 09:34:24 (GMT)
commit18619fbf94fc92c597d3e8ff14cc11a84c18fffe (patch)
treed2dddc296aac8af7d8ee995975c0364ca778324b
parent2326618b3afabdc5b3506de9e2d5a7c46e3bb9f4 (diff)
downloadkolab-wap-kolab-webadmin-3.1.6.tar.gz
Fix user.info result if user wasn't foundkolab-webadmin-3.1.6
-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']);