mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"Correcting code block"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6628 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f2941a660e
commit
5d59938121
1 changed files with 8 additions and 8 deletions
|
@ -561,17 +561,17 @@ class SecurityComponent extends Object {
|
|||
$merge[] = $lookup;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_numeric($k[0])) {
|
||||
if (isset($field[$newKey])) {
|
||||
$field[$newKey] = array_merge($merge, $field[$newKey]);
|
||||
} else {
|
||||
$field[$newKey] = $merge;
|
||||
if (!is_numeric($k[0])) {
|
||||
if (isset($field[$newKey])) {
|
||||
$field[$newKey] = array_merge($merge, $field[$newKey]);
|
||||
} else {
|
||||
$field[$newKey] = $merge;
|
||||
}
|
||||
$controller->data[$newKey] = Set::pushDiff($controller->data[$key], $controller->data[$newKey]);
|
||||
}
|
||||
$controller->data[$newKey] = Set::pushDiff($controller->data[$key], $controller->data[$newKey]);
|
||||
unset($controller->data[$key]);
|
||||
}
|
||||
unset($controller->data[$key]);
|
||||
continue;
|
||||
}
|
||||
$keys = array_keys($value);
|
||||
|
|
Loading…
Add table
Reference in a new issue