Skip to content

Commit

Permalink
Update definition of an empty model.
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcode committed Oct 25, 2013
1 parent 8a90cbd commit 940a51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -1398,7 +1398,7 @@ protected function _mergeAssociation(&$data, &$merge, $association, $type, $self
if (isset($merge[$association])) { if (isset($merge[$association])) {
$data[$association] = $merge[$association][0]; $data[$association] = $merge[$association][0];
} else { } else {
if (count($merge[0][$association]) > 1) { if (!empty($merge[0][$association])) {
foreach ($merge[0] as $assoc => $data2) { foreach ($merge[0] as $assoc => $data2) {
if ($assoc !== $association) { if ($assoc !== $association) {
$merge[0][$association][$assoc] = $data2; $merge[0][$association][$assoc] = $data2;
Expand Down

0 comments on commit 940a51b

Please sign in to comment.