Code

Created extra function for attribute cleanup
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Feb 2006 11:01:21 +0000 (11:01 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Feb 2006 11:01:21 +0000 (11:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2657 594d385d-05f5-0310-b6e9-bd551577e9d8

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 */