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 ).'';?>