From 7acc4818d3441fca847019a5c0fb5c1aa95f5d9e Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 10 Feb 2006 11:01:21 +0000 Subject: [PATCH] Created extra function for attribute cleanup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2657 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 17814d986..c2c4ca5f8 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -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 */ -- 2.30.2