mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixes #6359, array_intersect_key compatibility with php4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8196 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9caae67be1
commit
a903a4527f
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ if (!function_exists('file_put_contents')) {
|
|||
function array_intersect_key($arr1, $arr2) {
|
||||
$res = array();
|
||||
foreach ($arr1 as $key => $value) {
|
||||
if (isset($arr2[$key])) {
|
||||
if (array_key_exists($key, $arr2)) {
|
||||
$res[$key] = $arr1[$key];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue