Code Duplication    Length = 5-5 lines in 2 locations

Sources/PersonalMessage.php 1 location

@@ 1493-1497 (lines=5) @@
1490
		$timeQuery .= ' AND pm.msgtime > ' . (time() - $search_params['maxage'] * 86400);
1491
1492
	// If we have errors - return back to the first screen...
1493
	if (!empty($context['search_errors']))
1494
	{
1495
		$_REQUEST['params'] = $context['params'];
1496
		return MessageSearch();
1497
	}
1498
1499
	// Get the amount of results.
1500
	$request = $smcFunc['db_query']('', '

Sources/Search.php 1 location

@@ 965-969 (lines=5) @@
962
	call_integration_hook('integrate_search_errors');
963
964
	// One or more search errors? Go back to the first search screen.
965
	if (!empty($context['search_errors']))
966
	{
967
		$_REQUEST['params'] = $context['params'];
968
		return PlushSearch1();
969
	}
970
971
	// Spam me not, Spam-a-lot?
972
	if (empty($_SESSION['last_ss']) || $_SESSION['last_ss'] != $search_params['search'])