Code Duplication    Length = 2-2 lines in 2 locations

Sources/Search.php 1 location

@@ 371-372 (lines=2) @@
368
	}
369
370
	// Store whether simple search was used (needed if the user wants to do another query).
371
	if (!isset($search_params['advanced']))
372
		$search_params['advanced'] = empty($_REQUEST['advanced']) ? 0 : 1;
373
374
	// 1 => 'allwords' (default, don't set as param) / 2 => 'anywords'.
375
	if (!empty($search_params['searchtype']) || (!empty($_REQUEST['searchtype']) && $_REQUEST['searchtype'] == 2))

Sources/PersonalMessage.php 1 location

@@ 1227-1228 (lines=2) @@
1224
	$context['start'] = isset($_GET['start']) ? (int) $_GET['start'] : 0;
1225
1226
	// Store whether simple search was used (needed if the user wants to do another query).
1227
	if (!isset($search_params['advanced']))
1228
		$search_params['advanced'] = empty($_REQUEST['advanced']) ? 0 : 1;
1229
1230
	// 1 => 'allwords' (default, don't set as param) / 2 => 'anywords'.
1231
	if (!empty($search_params['searchtype']) || (!empty($_REQUEST['searchtype']) && $_REQUEST['searchtype'] == 2))