Allow empty VCALENDAR to work for calendar creation.

This commit is contained in:
Andrew McMillan 2009-09-25 22:12:50 +12:00
parent 1335d2008e
commit 23f2ad13a1

View File

@ -230,6 +230,7 @@ function import_collection( $ics_content, $user_no, $path, $caldav_context ) {
$resources = array();
foreach( $components AS $k => $comp ) {
$uid = $comp->GetPValue('UID');
if ( $uid == null || $uid == '' ) continue;
if ( !isset($resources[$uid]) ) $resources[$uid] = array();
$resources[$uid][] = $comp;