fixed merging of session and user prefs

This commit is contained in:
Ralf Becker 2004-03-21 22:03:06 +00:00
parent 30d02e3cc4
commit 745bfdc35e

View File

@ -247,7 +247,17 @@
break;
}
}
$this->data = array_merge_recursive($this->user,$this->session);
$this->data = $this->user;
// let the (temp.) session prefs. override the user prefs.
//
foreach($this->session as $app => $values)
{
foreach($values as $var => $value)
{
$this->data[$app][$var] = $value;
}
}
// now use defaults if needed (user-value unset or empty)
//