Browse Source

! Undefined index showCheckboxes

marcusforsberg 12 years ago
parent
commit
a3a6153fa9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Recent.php

+ 2 - 2
Sources/Recent.php

@@ -432,6 +432,8 @@ function UnreadTopics()
 		header('HTTP/1.1 403 Forbidden');
 		die;
 	}
+	
+	$context['showCheckboxes'] = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read'];
 
 	$context['showing_all_topics'] = isset($_GET['all']);
 	$context['start'] = (int) $_REQUEST['start'];
@@ -1317,8 +1319,6 @@ function UnreadTopics()
 	$context['querystring_board_limits'] = sprintf($context['querystring_board_limits'], $_REQUEST['start']);
 	$context['topics_to_mark'] = implode('-', $topic_ids);
 	
-	$context['showCheckboxes'] = !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $settings['show_mark_read'];
-	
 	if ($settings['show_mark_read'])
 	{
 		// Build the recent button array.