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 = ', ';