mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Update definition of an empty model.
This commit is contained in:
parent
8a90cbd4fe
commit
940a51b5fa
1 changed files with 1 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ class DboSource extends DataSource {
|
|||
if (isset($merge[$association])) {
|
||||
$data[$association] = $merge[$association][0];
|
||||
} else {
|
||||
if (count($merge[0][$association]) > 1) {
|
||||
if (!empty($merge[0][$association])) {
|
||||
foreach ($merge[0] as $assoc => $data2) {
|
||||
if ($assoc !== $association) {
|
||||
$merge[0][$association][$assoc] = $data2;
|
||||
|
|
Loading…
Reference in a new issue