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;