Skip to content

Commit

Permalink
fixes #6359, array_intersect_key compatibility with php4
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8196 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
gwoo committed Jun 16, 2009
1 parent 9caae67 commit a903a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/basics.php
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit a903a45

Please sign in to comment.