index 1aaa8e800c557389bb2888cd22edbfe0a93dc820..a83343709f0152189fd65343d6e4a6853ee7f23f 100644 (file)
$this->hostname=$hostname;
/* Check if MAX_LDAP_QUERY_TIME is defined */
- if($config->get_cfg_value("max_ldap_query_time") != ""){
+ if(is_object($config) && $config->get_cfg_value("max_ldap_query_time") != ""){
$str = $config->get_cfg_value("max_ldap_query_time");
$this->max_ldap_query_time = (float)($str);
}
/* Only read schema if it is allowed */
if(isset($config) && preg_match("/config/i",get_class($config))){
- if ($config->get_cfg_value("schema_check") != "true"){
+ if ($config->get_cfg_value("schemaCheck") != "true"){
return($objectclasses);
}
}