Skip to content

Commit

Permalink
Terrible mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sama34 committed Jan 21, 2020
1 parent 91ecf5e commit 1b49d55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Upload/inc/plugins/ougc_feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -1349,12 +1349,13 @@ function hook_postbit(&$post)

$post['ougc_feedback'] = $post['ougc_feedback_button'] = '';

$show = true;
if(!empty($post['fid']) && (!$mybb->settings['ougc_feedback_showin_forums'] || ($mybb->settings['ougc_feedback_showin_forums'] != -1 && !in_array($post['fid'], array_map('intval', explode(',', $mybb->settings['ougc_feedback_showin_forums']))))))
{
return;
$show = false;
}

if($mybb->settings['ougc_feedback_showin_postbit'])
if($show && $mybb->settings['ougc_feedback_showin_postbit'])
{
static $query_cache;

Expand Down

0 comments on commit 1b49d55

Please sign in to comment.