Code

Fixed white-page in setup.
[gosa.git] / gosa-core / include / class_plugin.inc
index abafba973ea145267e9756579d029c9781318dc2..8c8ca1dcaed1533ea654cbc96228191d6e7ceb3a 100644 (file)
@@ -180,7 +180,7 @@ class plugin
       /* Set the template flag according to the existence of objectClass
          gosaUserTemplate */
       if (isset($this->attrs['objectClass'])){
-        if (in_array ("gosaUserTemplate", $this->attrs['objectClass'])){
+        if (in_array_ics ("gosaUserTemplate", $this->attrs['objectClass'])){
           $this->is_template= TRUE;
           @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
               "found", "Template check");
@@ -273,7 +273,7 @@ class plugin
     /* Remove objectClasses from entry */
     $ldap->cd($this->dn);
     $this->attrs= array();
-    $this->attrs['objectClass']= array_remove_entries($this->objectclasses,$oc);
+    $this->attrs['objectClass']= array_remove_entries_ics($this->objectclasses,$oc);
 
     /* Unset attributes from entry */
     foreach ($this->attributes as $val){
@@ -1305,7 +1305,7 @@ class plugin
      There will also be some errors psoted, if the configuration failed */
   function snapshotEnabled()
   {
-    $config = $this->config->current;
+    $config = $this->config;
     if($config->get_cfg_value("enable_snapshot") == "true"){
            /* Check if the snapshot_base is defined */
            if ($config->get_cfg_value("snapshot_base") == ""){