Skip to content

Commit

Permalink
whoops! dont show status if threshold not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bearded Avenger committed Dec 14, 2014
1 parent 05d5bb4 commit 07e9b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) { ?>
<div class="idea-factory--status">
<?php echo '<span class="idea-factory--status_'.sanitize_html_class( $status ).'">'.esc_attr( $status ).'</span>';?>
</div>
Expand Down

0 comments on commit 07e9b32

Please sign in to comment.