From: hickert Date: Mon, 18 Jun 2007 07:48:12 +0000 (+0000) Subject: Ensure that setup schema check will still work X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fe408b98a378c6983b5906fea0eeba3ffcbb6df3;p=gosa.git Ensure that setup schema check will still work git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6610 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 84e5a7fb2..e191657f3 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -1313,9 +1313,11 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec { global $config; $objectclasses = array(); - - if(!isset($config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ - return($objectclasses); + + if(isset($config) && preg_match("/config/i",get_class($config))){ + if(!isset($config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ + return($objectclasses); + } } # Get base to look for schema