From f8440e370fa789723a742b5b62d737e4fc71dcc7 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 6 Jun 2006 10:36:07 +0000 Subject: [PATCH] correctly hide categories with only hidden modules git-svn-id: file:///svn/phpbb/trunk@6011 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index cc8b093d4b..a684a513d3 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -154,8 +154,8 @@ class p_master { if ($temp_row['left_id'] > $row['left_id'] && $temp_row['left_id'] < $row['right_id']) { - // Module there - if ($temp_row['module_name'] && $temp_row['module_enabled']) + // Module there and not hidden? + if ($temp_row['module_name'] && $temp_row['module_enabled'] && $temp_row['module_display']) { $empty_category = false; break;