From: cajus Date: Tue, 14 Feb 2006 18:14:26 +0000 (+0000) Subject: Fixed Problem with non deleted objectclasses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=087b0f3d3d14e53e4225249a52caad4ac4f80dab;p=gosa.git Fixed Problem with non deleted objectclasses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2694 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 103a6c1fc..5b57ce3d1 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -336,23 +336,19 @@ class plugin /* Remove arrays that do not differ */ if (is_array($this->attrs[$index]) && isset($this->saved_attributes[$index]) && is_array($this->saved_attributes[$index])){ - $dst= $this->attrs[$index]; - $src= $this->saved_attributes[$index]; - sort($dst); - sort($src); - if (count(array_diff($src, $dst))==0 ){ + if (count(array_diff($this->attrs[$index],$this->saved_attributes[$index]))==0 ){ unset ($this->attrs[$index]); continue; } } } - ####################################################### - ; if (count($this->attrs)!=0){ ; - ; echo "--- DEBUG: changes ---
" ; - ; print_a ($this->attrs) ; - ; } ; - ####################################################### + ####################################### + ; if (count($this->attrs)!=0){ ; + ; echo "--- DEBUG: changes ---
" ; + ; print_a ($this->attrs) ; + ; } ; + ####################################### } /* Check formular input */