Aleksander Machniak
2012-12-10 1aaa4bc3937187c54039a8459409a2efd9cb3cd7
Fix PHP Warning:  ldap_parse_virtuallist_control() expects parameter 2 to be
resource, null given. This happens on Administrative Limit Exceeded error when
using VLV.
1 files modified
1 ■■■■ changed files
program/lib/Roundcube/rcube_ldap.php 1 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_ldap.php
@@ -1455,6 +1455,7 @@
                if ($this->vlv_active && function_exists('ldap_parse_virtuallist_control')) {
                    if (ldap_parse_result($this->conn, $this->ldap_result,
                        $errcode, $matcheddn, $errmsg, $referrals, $serverctrls)
                        && $serverctrls // can be null e.g. in case of adm. limit error
                    ) {
                        ldap_parse_virtuallist_control($this->conn, $serverctrls,
                            $last_offset, $this->vlv_count, $vresult);