Code

Fixed config object usage
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Jun 2007 07:35:33 +0000 (07:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 18 Jun 2007 07:35:33 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6609 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index b01dd99e9346e7a66dabd1de5e8d844bc17529ab..84e5a7fb284647dfc1cc4eabb69e3f7e348c2ff5 100644 (file)
@@ -1311,9 +1311,10 @@ function gen_xls ($dn, $filter= "(objectClass=*)", $attributes= array('*'), $rec
 
   function get_objectclasses()
   {
+    global $config;
     $objectclasses = array();
-
-    if(!isset($this->config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$this->config->data['MAIN']['SCHEMA_CHECK'])){
+      
+    if(!isset($config->data['MAIN']['SCHEMA_CHECK']) || !preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){
       return($objectclasses);
     }