Code Duplication    Length = 6-9 lines in 2 locations

other/upgrade.php 1 location

@@ 2348-2356 (lines=9) @@
2345
	if (empty($end) || $end < 10)
2346
		$end = count($settingsArray);
2347
2348
	if (!empty($config_vars))
2349
	{
2350
		$settingsArray[$end++] = '';
2351
		foreach ($config_vars as $var => $val)
2352
		{
2353
			if ($val != '#remove#')
2354
				$settingsArray[$end++] = '$' . $var . ' = ' . $val . ';' . "\n";
2355
		}
2356
	}
2357
	// This should be the last line and even last bytes of the file.
2358
	$settingsArray[$end] = '?' . '>';
2359

other/install.php 1 location

@@ 2043-2048 (lines=6) @@
2040
	}
2041
2042
	// Uh oh... the file wasn't empty... was it?
2043
	if (!empty($vars))
2044
	{
2045
		$settingsArray[$i++] = '';
2046
		foreach ($vars as $var => $val)
2047
			$settingsArray[$i++] = '$' . $var . ' = \'' . $val . '\';' . "\n";
2048
	}
2049
2050
	// Blank out the file - done to fix a oddity with some servers.
2051
	$fp = @fopen(dirname(__FILE__) . '/Settings.php', 'w');