Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
hejeva CreditAttribution: hejeva commentedI 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.
Comment #2
jdwfly CreditAttribution: jdwfly commentedGood catch, added to dev version