Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage.php
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | public static function ldap($name = 'kolab_users_directory') | ||||
$config = self::$config->get($name); | $config = self::$config->get($name); | ||||
if (empty($config)) { | if (empty($config)) { | ||||
$name = 'kolab_auth_addressbook'; | $name = 'kolab_auth_addressbook'; | ||||
$config = self::$config->get($name); | $config = self::$config->get($name); | ||||
} | } | ||||
if (self::$ldap[$name]) { | if (self::$ldap[$name] ?? false) { | ||||
return self::$ldap[$name]; | return self::$ldap[$name]; | ||||
} | } | ||||
if (!is_array($config)) { | if (!is_array($config)) { | ||||
$ldap_config = (array)self::$config->get('ldap_public'); | $ldap_config = (array)self::$config->get('ldap_public'); | ||||
$config = $ldap_config[$config]; | $config = $ldap_config[$config]; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,670 Lines • Show Last 20 Lines |