Code Duplication    Length = 2-2 lines in 2 locations

Sources/Errors.php 1 location

@@ 428-429 (lines=2) @@
425
	// For our purposes, we're gonna want this on if at all possible.
426
	$modSettings['cache_enable'] = '1';
427
428
	if (($temp = cache_get_data('db_last_error', 600)) !== null)
429
		$db_last_error = max($db_last_error, $temp);
430
431
	if ($db_last_error < time() - 3600 * 24 * 3 && empty($maintenance) && !empty($db_error_send))
432
	{

Sources/Subs-Db-mysql.php 1 location

@@ 593-594 (lines=2) @@
590
		$old_cache = @$modSettings['cache_enable'];
591
		$modSettings['cache_enable'] = '1';
592
593
		if (($temp = cache_get_data('db_last_error', 600)) !== null)
594
			$db_last_error = max(@$db_last_error, $temp);
595
596
		if (@$db_last_error < time() - 3600 * 24 * 3)
597
		{