summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-03-11 09:12:08 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-03-11 09:12:08 +0100
commit398057960237918ee50c91c2e960e0472424f6c6 (patch)
tree98ca9418190e469cbe31d45e9d5c7b475fb6fc40 /program
parent519ce2e2ec4b69f29ac7bb7b960641d1350d3218 (diff)
Avoid useless connection attempts if host is empty
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_ldap_generic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php
index b85afe4ce..f1048ef39 100644
--- a/program/lib/Roundcube/rcube_ldap_generic.php
+++ b/program/lib/Roundcube/rcube_ldap_generic.php
@@ -160,7 +160,7 @@ class rcube_ldap_generic
$this->config['hosts'] = array($this->config['hosts']);
foreach ($this->config['hosts'] as $host) {
- if ($this->connect($host)) {
+ if (!empty($host) && $this->connect($host)) {
return true;
}
}