php < 5.1 fixes

This commit is contained in:
Cornelius Weiß 2005-11-11 21:51:00 +00:00
parent 1e478273d3
commit bd143eec64
2 changed files with 2 additions and 2 deletions

View File

@ -1523,7 +1523,7 @@ if (!function_exists('array_intersect_key')) // php5.1 function
$intersection = $keys = array(); $intersection = $keys = array();
foreach(func_get_args() as $arr) foreach(func_get_args() as $arr)
{ {
$keys[] = array_keys($arr); $keys[] = array_keys((array)$arr);
} }
foreach(call_user_func_array('array_intersect',$keys) as $key) foreach(call_user_func_array('array_intersect',$keys) as $key)
{ {

View File

@ -357,7 +357,7 @@ class socal
$row['alarm'] = array(); $row['alarm'] = array();
$row['recur_exception'] = $row['recur_exception'] ? explode(',',$row['recur_exception']) : array(); $row['recur_exception'] = $row['recur_exception'] ? explode(',',$row['recur_exception']) : array();
$events[$id] =& $row; $events[$id] = $row;
} }
if (count($events)) if (count($events))