Aleksander Machniak
2014-06-10 f67d372449a358f72c9f8d654dadda014fccf293
Fix "PHP Fatal error: Cannot break/continue 1 level" when ldap_start_tls() fails
1 files modified
8 ■■■■■ changed files
program/lib/Roundcube/rcube_ldap_generic.php 8 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_ldap_generic.php
@@ -175,9 +175,11 @@
        $this->_debug("C: Connect to $hostname [{$this->config['name']}]");
        if ($lc = @ldap_connect($host, $this->config['port'])) {
            if ($this->config['use_tls'] === true)
                if (!ldap_start_tls($lc))
                    continue;
            if ($this->config['use_tls'] === true) {
                if (!ldap_start_tls($lc)) {
                    return false;
                }
            }
            $this->_debug("S: OK");