Browse Source

! Fix the admin time stuff for custom indexes - but only if we haven't disabled security

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
44c1eab3af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/ManageSearch.php

+ 2 - 2
Sources/ManageSearch.php

@@ -499,8 +499,8 @@ function CreateMessageIndex()
 		$context['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
 		$context['step'] = isset($_REQUEST['step']) ? (int) $_REQUEST['step'] : 0;
 
-		// admin timeouts are painful when building these long indexes
-		if ($_SESSION['admin_time'] + 3300 < time() && $context['step'] >= 1)
+		// admin timeouts are painful when building these long indexes - but only if we actually have such things enabled
+		if (empty($modSettings['securityDisable']) && $_SESSION['admin_time'] + 3300 < time() && $context['step'] >= 1)
 			$_SESSION['admin_time'] = time();
 	}