diff --git a/control/Session.php b/control/Session.php index e86616da7..d0326c5f4 100644 --- a/control/Session.php +++ b/control/Session.php @@ -415,7 +415,7 @@ class Session { protected function recursivelyApply($data, &$dest) { foreach($data as $k => $v) { if(is_array($v)) { - if(!isset($dest[$k])) $dest[$k] = array(); + if(!isset($dest[$k]) || !is_array($dest[$k])) $dest[$k] = array(); $this->recursivelyApply($v, $dest[$k]); } else { $dest[$k] = $v;