From 07e9b324c3d90bf3ea9986ed91fbb3ad4ebd75ea Mon Sep 17 00:00:00 2001 From: Bearded Avenger Date: Sun, 14 Dec 2014 15:11:26 -0600 Subject: [PATCH] whoops! dont show status if threshold not enabled --- public/includes/helpers.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/includes/helpers.php b/public/includes/helpers.php index 1b9f68b..85cad64 100644 --- a/public/includes/helpers.php +++ b/public/includes/helpers.php @@ -317,8 +317,10 @@ function idea_factory_vote_controls( $postid = '' ) { function idea_factory_vote_status( $postid = '' ) { $status = idea_factory_get_status( $postid ); + $threshold = idea_factory_get_option('if_threshold','if_settings_main'); - if ( 'open' !== $status && false !== $status ) { ?> + + if ( 'open' !== $status && false !== $status && !empty( $threshold ) ) { ?>
'.esc_attr( $status ).'';?>