Fixed kolab_auth_mailhost feature

This commit is contained in:
Aleksander Machniak 2013-10-08 13:45:23 +02:00
parent cc21e9161c
commit 004cd5ac56

View file

@ -385,12 +385,12 @@ class kolab_auth extends rcube_plugin
$_SESSION['user_roledns'] = (array)($record[$role_attr]);
}
if (!empty($imap_attr) && !empty($record[$role_attr])) {
if (!empty($imap_attr) && !empty($record[$imap_attr])) {
$default_host = $rcmail->config->get('default_host');
if (!empty($default_host)) {
rcube::write_log("errors", "Both default host and kolab_auth_mailhost set. Incompatible.");
} else {
$args['host'] = "tls://" . $record[$role_attr];
$args['host'] = "tls://" . $record[$imap_attr];
}
}