Commit fb951ab4 authored by Eric Bremner's avatar Eric Bremner

ISTWCMS-2894: adding patch from...

ISTWCMS-2894: adding patch from https://www.drupal.org/project/date_ical/issues/3040220#comment-13022053
parent 0be913c4
......@@ -182,10 +182,12 @@ class date_ical_plugin_row_ical_fields extends views_plugin_row {
// is, make an educated guess about the delta by comparing this row's
// start date to each of the entity's dates.
$date_field_delta = 0;
foreach ($entity->{$date_field_name}['und'] as $ndx => $date_array) {
if ($date['start']->originalTime == $date_array['value']) {
$date_field_delta = $ndx;
break;
if (isset($entity->{$date_field_name}['und'])) {
foreach ($entity->{$date_field_name}['und'] as $ndx => $date_array) {
if ($date['start']->originalTime == $date_array['value']) {
$date_field_delta = $ndx;
break;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment