Procházet zdrojové kódy

Fix MARK ALL MESSAGES AS READ seen by guest

Signed-off-by: illori <[email protected]>
Illori před 12 roky
rodič
revize
0bc6567544
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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, $user_info;
+	global $context, $settings, $options, $txt, $scripturl, $modSettings;
 
 	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 ($context['user']['is_logged'] && $settings['show_mark_read'] && !empty($context['categories']))
 	echo '
 		<div class="mark_read">', template_button_strip($context['mark_read_button'], 'right'), '</div>';
 }