Skip to content

Commit

Permalink
Define variables before they are used.
Browse files Browse the repository at this point in the history
Refs #7563
  • Loading branch information
markstory committed Oct 17, 2015
1 parent fea6fd7 commit e2a1094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -1562,6 +1562,7 @@ protected function _mergeAssociation(&$data, &$merge, $association, $type, $self
}
} else {
if (is_array($merge[0][$association])) {
$mergeAssocTmp = array();
foreach ($dataAssociation as $k => $v) {
if (!is_array($v)) {
$dataAssocTmp[$k] = $v;
Expand Down Expand Up @@ -3586,4 +3587,4 @@ public function __destruct() {
parent::__destruct();
}

}
}

0 comments on commit e2a1094

Please sign in to comment.