summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/kolab_api_service.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 980932b..b552342 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -707,9 +707,11 @@ abstract class kolab_api_service
}
// Get the domain information for expansion later
- $auth = Auth::get_instance();
+ $auth = Auth::get_instance();
$domain_info = $auth->domain_info($_SESSION['user']->get_domain());
- $domain_info = $domain_info[key($domain_info)];
+ $domain_info = empty($domain_info) ? null : $domain_info[key($domain_info)];
+
+ $dba = 'inetdomainbasedn';
$dna = $this->conf->get('domain_name_attribute');
if (empty($dna)) {
@@ -721,8 +723,6 @@ abstract class kolab_api_service
$domain = $domain[0];
}
- $dba = 'inetdomainbasedn';
-
if (empty($domain_info[$dba])) {
$this->base_dn = 'dc=' . implode(',dc=', explode('.', $domain));
} else {