The template_events function in gcal_events.module produces an "undefined variable" error message at line 866 when invoked without any events to show.

A one-line fix would be to initialize
$gcal_events = array();
at line 794.

I'm running PHP 5.2.17.

Comments

hejeva’s picture

I agree.
Defing $gcal_events = array(); at the beginning of the function: function template_events($events, $which_block) eliminates this error when there are no calendar entries.

jdwfly’s picture

Status: Active » Fixed

Good catch, added to dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.