Skip to content

Commit

Permalink
Robust fix from stable
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 22, 2005
1 parent 4c32ba4 commit b0ac918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ function calendar_get_sideblock_upcoming($events, $linkhref = NULL) {
}

for ($i = 0; $i < $lines; ++$i) {
if (!isset($events[$i]->time)) { // Just for robustness
continue;
}
$events[$i] = calendar_add_event_metadata($events[$i]);
$content .= '<div class="event">'.$events[$i]->icon.' ';
if (!empty($events[$i]->referer)) {
Expand Down

0 comments on commit b0ac918

Please sign in to comment.