Skip to content

Commit

Permalink
Avoid useless connection attempts if host is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Mar 11, 2014
1 parent 519ce2e commit 3980579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_ldap_generic.php
Expand Up @@ -160,7 +160,7 @@ public function connect($host = null)
$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;
}
}
Expand Down

0 comments on commit 3980579

Please sign in to comment.