From 23f2ad13a16e25c32cf3b39a049381e6fc0334b0 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 25 Sep 2009 22:12:50 +1200 Subject: [PATCH] Allow empty VCALENDAR to work for calendar creation. --- inc/caldav-PUT-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index edd8845a..30471011 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -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;