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.
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
Comment #1
jeffpiazza CreditAttribution: jeffpiazza commentedActually, the correct regular expression is:
Comment #3
jdwfly CreditAttribution: jdwfly commented