diff options
author | PayBas <contact@paybas.com> | 2014-05-28 23:16:38 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-01 16:26:36 +0100 |
commit | c2997ada7aa4d8f63880ea68723266d7cedb4899 (patch) | |
tree | 9f86dd352f28749876cf654b84ec21b4784dabea | |
parent | 6ccffec90695becd92d1144f6cbd9ef72f0d9b51 (diff) | |
download | forums-c2997ada7aa4d8f63880ea68723266d7cedb4899.tar forums-c2997ada7aa4d8f63880ea68723266d7cedb4899.tar.gz forums-c2997ada7aa4d8f63880ea68723266d7cedb4899.tar.bz2 forums-c2997ada7aa4d8f63880ea68723266d7cedb4899.tar.xz forums-c2997ada7aa4d8f63880ea68723266d7cedb4899.zip |
[ticket/12559] Applied DeMorgan and removed unnecessary true:false
PHPBB3-12559
-rw-r--r-- | phpBB/includes/functions_display.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 1311148e8d..73281b88a1 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -280,7 +280,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(); |