diff --git a/lib/bennu/iCalendar_components.php b/lib/bennu/iCalendar_components.php index 92350981dc0..3c2936b1a22 100644 --- a/lib/bennu/iCalendar_components.php +++ b/lib/bennu/iCalendar_components.php @@ -237,6 +237,11 @@ class iCalendar_component { $components = array(); // Initialise a stack of components $this->clear_errors(); foreach ($lines as $key => $line) { + // ignore empty lines + if (trim($line) == '') { + continue; + } + // Divide the line up into label, parameters and data fields. if (!preg_match('#^(?P