mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fixes #4111, empty array in model task when table indexes missing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6458 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
0d2c0c1c6c
commit
1c894d0cfd
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ class ModelTask extends Shell {
|
|||
} else {
|
||||
$col = "\t\t\t'indexes' => array(";
|
||||
$props = array();
|
||||
foreach ($value as $key => $index) {
|
||||
foreach ((array)$value as $key => $index) {
|
||||
$props[] = "'{$key}' => array(".join(', ', $schema->__values($index)).")";
|
||||
}
|
||||
$col .= join(', ', $props);
|
||||
|
|
Loading…
Reference in a new issue