Explorar o código

Merge pull request #362 from illori/release-2.1

Fix MARK ALL MESSAGES AS READ seen by guest
Oldiesmann %!s(int64=11) %!d(string=hai) anos
pai
achega
51f8086c8d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Themes/default/BoardIndex.template.php

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

@@ -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>';
 }