From 6567cdd7494c5a4dec9a028aa9decb18d44a4dfe Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 9 Apr 2020 23:02:47 +1000 Subject: [PATCH] Update event-calendar.php Fix delimiter error in event calendar --- templates/event-calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/event-calendar.php b/templates/event-calendar.php index acaf53eb..3c3d98a4 100644 --- a/templates/event-calendar.php +++ b/templates/event-calendar.php @@ -183,7 +183,7 @@ if ( $dayswithposts ) { $daywithpost = array(); } -if ( array_key_exists( 'HTTP_USER_AGENT', $_SERVER ) && preg_match( 'MSIE|camino|safari', $_SERVER[ 'HTTP_USER_AGENT' ] ) ) { +if ( array_key_exists( 'HTTP_USER_AGENT', $_SERVER ) && preg_match( '/(MSIE|camino|safari)/', $_SERVER[ 'HTTP_USER_AGENT' ] ) ) { $ak_title_separator = "\n"; } else { $ak_title_separator = ', ';