From 38e3944623db55be02dc0797a8cc476820ac7cd6 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Wed, 13 Apr 2016 15:57:25 +1000 Subject: [PATCH] Don't show countdown if nothing available --- templates/countdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/countdown.php b/templates/countdown.php index 59af4225..d7ea4162 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -31,7 +31,7 @@ endif; extract( $defaults, EXTR_SKIP ); -if ( ! isset( $post ) ) return; +if ( ! isset( $post ) || ! $post ) return; if ( $title ) echo '

' . $title . '

';