Skip to content

Commit

Permalink
[ticket/12559] Applied DeMorgan and removed unnecessary true:false
Browse files Browse the repository at this point in the history
PHPBB3-12559
  • Loading branch information
PayBas committed Feb 9, 2015
1 parent 7fa7089 commit 447a242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/includes/functions_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
}
else if ($row['forum_type'] != FORUM_CAT)
{
$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index'] && !($parent_subforum_limit && $parent_id !== $row['parent_id'])) ? true : false;
$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index'] && (!$parent_subforum_limit || $parent_id == $row['parent_id']));
$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$subforums[$parent_id][$forum_id]['children'] = array();
Expand Down

0 comments on commit 447a242

Please sign in to comment.