Code

Created extra function for attribute cleanup
[gosa.git] / include / class_plugin.inc
index 17814d986563b9e1619d1c8763043b8366c65515..c2c4ca5f8ebf24626f4bf882728ba0a19dd96283 100644 (file)
@@ -315,6 +315,10 @@ class plugin
       }
     }
 
+  }
+
+  function cleanup()
+  {
     /* Clean up */
     foreach ($this->attrs as $index => $value){
       if (is_array($this->attrs[$index]) && count($this->attrs[$index]) == 0 && !isset($this->saved_attributes[$index])){
@@ -334,10 +338,11 @@ class plugin
         continue;
       }
     }
-#################################
-; echo "--- DEBUG: changes ---" ;
-; print_a ($this->attrs)        ;
-#################################
+
+    #################################
+    ; echo "--- DEBUG: changes ---" ;
+    ; print_a ($this->attrs)        ;
+    #################################
   }
 
   /* Check formular input */