aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorRahul R <rahulr92@gmail.com>2012-04-05 02:02:02 +0530
committerRahul R <rahulr92@gmail.com>2012-04-05 02:06:04 +0530
commit3e9711d6a4c1786ec4702b1d87810c4ed0182953 (patch)
tree7316ab3b827d78196576182ed2ae1362cf6dad74 /phpBB/includes/functions_display.php
parent7bb9e301994cb9789478b32c1282238e5762acee (diff)
downloadforums-3e9711d6a4c1786ec4702b1d87810c4ed0182953.tar
forums-3e9711d6a4c1786ec4702b1d87810c4ed0182953.tar.gz
forums-3e9711d6a4c1786ec4702b1d87810c4ed0182953.tar.bz2
forums-3e9711d6a4c1786ec4702b1d87810c4ed0182953.tar.xz
forums-3e9711d6a4c1786ec4702b1d87810c4ed0182953.zip
[ticket/10650] Added checking for empty subjects
Now empty subjects will not be displayed in a new line on the forum list. PHPBB3-10650
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index a28f546be0..4e70a4911c 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -456,7 +456,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'S_LOCKED_FORUM' => ($row['forum_status'] == ITEM_LOCKED) ? true : false,
'S_LIST_SUBFORUMS' => ($row['display_subforum_list']) ? true : false,
'S_SUBFORUMS' => (sizeof($subforums_list)) ? true : false,
- 'S_DISPLAY_SUBJECT' => ($row['display_last_subject'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? true : false,
+ 'S_DISPLAY_SUBJECT' => ($last_post_subject && $row['display_last_subject'] && !$row['forum_password'] && $auth->acl_get('f_read', $row['forum_id'])) ? true : false,
'S_FEED_ENABLED' => ($config['feed_forum'] && !phpbb_optionget(FORUM_OPTION_FEED_EXCLUDE, $row['forum_options']) && $row['forum_type'] == FORUM_POST) ? true : false,
'FORUM_ID' => $row['forum_id'],