Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit a903a4527f4567d5e42b551b06e46b0a1f46e512 1 parent 9caae67
gwoo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/basics.php
View
2  cake/basics.php
@@ -830,7 +830,7 @@ function array_diff_key() {
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];
}
}

0 comments on commit a903a45

Please sign in to comment.
Something went wrong with that request. Please try again.