From fe408b98a378c6983b5906fea0eeba3ffcbb6df3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 18 Jun 2007 07:48:12 +0000 Subject: [PATCH] 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 --- include/class_ldap.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.30.2