mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Adding beforeRender() callback for helpers. Adding fix for Set::diff(); git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4575 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
55a66a9091
commit
dea1dc77fb
3 changed files with 57 additions and 65 deletions
|
@ -371,7 +371,9 @@ class Set extends Object {
|
|||
return (array)$val1;
|
||||
}
|
||||
foreach ($val1 as $key => $val) {
|
||||
if (!isset($val2[$key]) || $val2[$key] != $val) {
|
||||
if (isset($val2[$key]) && $val2[$key] != $val) {
|
||||
$out[$key] = $val;
|
||||
} else if(!array_key_exists($key, $val2)){
|
||||
$out[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
@ -484,4 +486,4 @@ class Set extends Object {
|
|||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue