"removed php < 5.1 fallback function"

This commit is contained in:
Ralf Becker 2008-06-05 07:42:21 +00:00
parent e2f749c86b
commit 4edd90a8bf

View File

@ -1076,20 +1076,3 @@ class accounts_ldap
$this->frontend->config['ldap_root_dn'],$this->frontend->config['ldap_root_pw']);
}
}
if (!function_exists('array_intersect_key')) // php5.1 function
{
function array_intersect_key($array1,$array2)
{
$intersection = $keys = array();
foreach(func_get_args() as $arr)
{
$keys[] = array_keys((array)$arr);
}
foreach(call_user_func_array('array_intersect',$keys) as $key)
{
$intersection[$key] = $array1[$key];
}
return $intersection;
}
}