Update event-calendar.php

Fix delimiter error in event calendar
This commit is contained in:
Brian Miyaji
2020-04-09 23:02:47 +10:00
parent de7cf287f4
commit 6567cdd749

View File

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