"fix for bug: can not unselect users from a multiple user selection (eg. InfoLog delegates), if the original value is in $preserv array"

This commit is contained in:
Ralf Becker 2007-05-08 09:00:22 +00:00
parent 957ebfb698
commit 3630f964fb

View File

@ -712,7 +712,8 @@
foreach($new as $k => $v) foreach($new as $k => $v)
{ {
if (!is_array($v) || !isset($old[$k])) if (!is_array($v) || !isset($old[$k]) || // no array or a new array
isset($v[0]) && isset($v[count($v)-1])) // or no associative array, eg. selecting multiple accounts
{ {
$old[$k] = $v; $old[$k] = $v;
} }