Commit 06425562 authored by joelpittet's avatar joelpittet Committed by joseph.olstad
Browse files

Issue #3181175 by joelpittet: Notices with plugins

parent 3d5b2c80
......@@ -196,10 +196,12 @@ class date_ical_plugin_row_ical_fields extends views_plugin_row {
// the $row, so it's possible that it will sometimes be missing. If it
// is, make an educated guess about the delta by comparing this row's
// start date to each of the entity's dates.
foreach ($entity->{$date_field_name}['und'] as $ndx => $date_array) {
if ($date['start']->originalTime == $date_array['value']) {
$date_field_delta = $ndx;
break;
if (!empty($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