Skip to content

Commit

Permalink
BUGFIX: Prevent notice-level error in Session code when non-array is …
Browse files Browse the repository at this point in the history
…turned into an array.
  • Loading branch information
Sam Minnee authored and chillu committed Jan 29, 2013
1 parent f72c77e commit f8206d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8206d1

Please sign in to comment.