Explorar el Código

Merge pull request #362 from illori/release-2.1

Fix MARK ALL MESSAGES AS READ seen by guest
Oldiesmann hace 12 años
padre
commit
51f8086c8d
Se han modificado 1 ficheros con 1 adiciones y 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>';
 }