Permalink
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...
1 parent 9caae67 commit a903a4527f4567d5e42b551b06e46b0a1f46e512 gwoo committed Jun 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/basics.php
View
@@ -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.