From 9a1fbbfdbef40594fa920537f8849f81748ebf61 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Fri, 15 Nov 2024 14:46:36 -0600 Subject: [PATCH] Update my-calendar-output.php --- src/my-calendar-output.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/my-calendar-output.php b/src/my-calendar-output.php index a21a4667..3f026745 100644 --- a/src/my-calendar-output.php +++ b/src/my-calendar-output.php @@ -1310,7 +1310,7 @@ function mc_show_event_template( $content ) { if ( is_numeric( $event_id ) ) { $event = mc_get_nearest_event( $event_id, true ); if ( ! $event ) { - + return $content; } } else { @@ -1319,8 +1319,8 @@ function mc_show_event_template( $content ) { } } if ( is_object( $event ) ) { - $date = mc_date( 'Y-m-d', strtotime( $event->occur_begin ), false ); - $time = mc_date( 'H:i:00', strtotime( $event->occur_begin ), false ); + $date = mc_date( 'Y-m-d', strtotime( $event->occur_begin ), false ); + $time = mc_date( 'H:i:00', strtotime( $event->occur_begin ), false ); } else { return $content; }