From 5753d4e55aaac7012cde81de30233d833facd4d9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 3 Sep 2006 12:29:44 +0000 Subject: [PATCH] deleted attributes were not completely recognized --- lam/lib/modules.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index ab7642a2..67b4eb41 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1105,8 +1105,15 @@ class accountContainer { $tomodify = array(); $torem = array(); $notchanged = array(); - // Get list of all "easy" attributes + // get list of all attributes $attr_names = array_keys($attributes); + $orig_names = array_keys($orig); + // find deleted attributes (in $orig but no longer in $attributes) + for ($i = 0; $i < sizeof($orig_names); $i++) { + if (!isset($attributes[$orig_names[$i]])) { + $torem[$orig_names[$i]] = $orig[$orig_names[$i]]; + } + } // find changed attributes for ($i=0; $i