I am using Gcl Events with SimplePie.compiled.php ( simplepie_1.3.1 ).

GCal is failing to show two calendars simultaneously. It can show either one of them, but not both at the same time.

I tracked the failure down to this line. preg_split is not splitting, so to speak.

foreach (preg_split("[ \n]", $calendar_ids) as $calendar_id) {

Works OK if you substitute it by this other, with a slightly different regular expression
foreach (preg_split("/[ \n+]/", $calendar_ids) as $calendar_id) {

Hope this helps!

Comments

jeffpiazza’s picture

Actually, the correct regular expression is:

  foreach (preg_split("/[ \n]+/", $calendar_ids) as $calendar_id) {

  • jdwfly committed 18f65b2 on 7.x-1.x
    Issue #2009972 by jdwfly: fixed parsing of multiple calendar IDs
    
jdwfly’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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