[ticket/12559] Applied DeMorgan and removed unnecessary true:false

PHPBB3-12559
This commit is contained in:
PayBas 2014-05-28 23:16:38 +02:00 committed by Marc Alexander
parent 6ccffec906
commit c2997ada7a
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -280,7 +280,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
} }
else if ($row['forum_type'] != FORUM_CAT) 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]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time']; $subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$subforums[$parent_id][$forum_id]['children'] = array(); $subforums[$parent_id][$forum_id]['children'] = array();