Procházet zdrojové kódy

Merge pull request #362 from illori/release-2.1

Fix MARK ALL MESSAGES AS READ seen by guest
Oldiesmann před 11 roky
rodič
revize
51f8086c8d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Themes/default/BoardIndex.template.php

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

@@ -248,7 +248,7 @@ function template_main()
 		</ul>';
 		</ul>';
 
 
 	// Show the mark all as read button?
 	// 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 '
 	echo '
 		<div class="mark_read">', template_button_strip($context['mark_read_button'], 'right'), '</div>';
 		<div class="mark_read">', template_button_strip($context['mark_read_button'], 'right'), '</div>';
 }
 }