Skip to content
This repository
Browse code

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
authored June 16, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  cake/basics.php
2  cake/basics.php
@@ -830,7 +830,7 @@ function array_diff_key() {
830 830
 		function array_intersect_key($arr1, $arr2) {
831 831
 			$res = array();
832 832
 			foreach ($arr1 as $key => $value) {
833  
-				if (isset($arr2[$key])) {
  833
+				if (array_key_exists($key, $arr2)) {
834 834
 					$res[$key] = $arr1[$key];
835 835
 				}
836 836
 			}

0 notes on commit a903a45

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