Browse Source

Fix MARK ALL MESSAGES AS READ seen by guest

Signed-off-by: illori <[email protected]>
Illori 12 years ago
parent
commit
1982cc44df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Themes/default/BoardIndex.template.php

+ 2 - 2
Themes/default/BoardIndex.template.php

@@ -92,7 +92,7 @@ function template_newsfader()
 
 function template_main()
 {
-	global $context, $settings, $options, $txt, $scripturl, $modSettings;
+	global $context, $settings, $options, $txt, $scripturl, $modSettings, $user_info;
 
 	echo '
 	<div id="boardindex_table" class="boardindex_table">
@@ -248,7 +248,7 @@ function template_main()
 		</ul>';
 
 	// Show the mark all as read button?
-	if ($settings['show_mark_read'] && !empty($context['categories']))
+	if (!$user_info['is_guest'] && !empty($context['categories']))
 	echo '
 		<div class="mark_read">', template_button_strip($context['mark_read_button'], 'right'), '</div>';
 }