mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
php < 5.1 fix for the advanced search
This commit is contained in:
parent
6564cbc99a
commit
bcb22e45ef
@ -1462,3 +1462,21 @@ $readonlys['button[vcard]'] = true;
|
|||||||
$GLOBALS['egw']->common->egw_footer();
|
$GLOBALS['egw']->common->egw_footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user