LSsession :: haveSubDn() : Fixed Notice PHP

This commit is contained in:
Benjamin Renard 2010-11-08 17:02:35 +01:00
parent 9a1ec2fcdd
commit 62696c9f16

View file

@ -2091,7 +2091,7 @@ class LSsession {
* @retval boolean true si le serveur LDAP courant a des subDn, false sinon
*/
public static function haveSubDn() {
return (is_array(self :: $ldapServer['subDn']));
return (isset(self :: $ldapServer['subDn']) && is_array(self :: $ldapServer['subDn']));
}
/**