"flatten values first (some selectbox values are given multi-dimensional), causing eg. default for notifications not being displayed"

This commit is contained in:
Ralf Becker 2009-06-07 15:25:39 +00:00
parent 5cb8f52d41
commit 66a22129e0

View File

@ -542,6 +542,15 @@
}
if($GLOBALS['type'] == 'user' && $GLOBALS['egw']->preferences->default[$_appname][$name])
{
// flatten values first (some selectbox values are given multi-dimensional)
foreach($values as $id => $val)
{
if (is_array($val))
{
unset($values[$id]);
$values += $val;
}
}
$defs = array();
foreach(explode(',',$GLOBALS['egw']->preferences->default[$_appname][$name]) as $def)
{