Skip to content

Commit

Permalink
Merge pull request #28 from Sama34/develop
Browse files Browse the repository at this point in the history
Mistake that would hide the feedback button when it shouldn't.
  • Loading branch information
Sama34 committed Jan 21, 2020
2 parents f625477 + 1b49d55 commit 9beefe8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Upload/inc/plugins/ougc_feedback.php
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 9beefe8

Please sign in to comment.