Make sure ID is an array before treating it as an array

This commit is contained in:
Nathan Gray 2012-04-16 19:19:44 +00:00
parent ebdc207ff5
commit 2452e2a4b0

View File

@ -118,7 +118,7 @@ class calendar_merge extends bo_merge
$prefix = 'calendar/%d';
}
}
elseif ($id[0]['id'])
elseif (is_array($id) && $id[0]['id'])
{
// Passed an array of events, to be handled like a date range
$events = $id;