Permalink
Browse files

BUGFIX: Prevent notice-level error in Session code when non-array is …

…turned into an array.
  • Loading branch information...
1 parent f72c77e commit f8206d15c81b161af13494e9e978794b947fb3c1 @sminnee sminnee committed with chillu Apr 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/Session.php
View
@@ -415,7 +415,7 @@ public function inst_save() {
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;

0 comments on commit f8206d1

Please sign in to comment.