correctly hide categories with only hidden modules

git-svn-id: file:///svn/phpbb/trunk@6011 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-06-06 10:36:07 +00:00
parent d404c70552
commit f8440e370f

View file

@ -154,8 +154,8 @@ class p_master
{ {
if ($temp_row['left_id'] > $row['left_id'] && $temp_row['left_id'] < $row['right_id']) if ($temp_row['left_id'] > $row['left_id'] && $temp_row['left_id'] < $row['right_id'])
{ {
// Module there // Module there and not hidden?
if ($temp_row['module_name'] && $temp_row['module_enabled']) if ($temp_row['module_name'] && $temp_row['module_enabled'] && $temp_row['module_display'])
{ {
$empty_category = false; $empty_category = false;
break; break;