Code Duplication    Length = 6-9 lines in 2 locations

other/upgrade.php 1 location

@@ 2039-2047 (lines=9) @@
2036
	if (empty($end) || $end < 10)
2037
		$end = count($settingsArray);
2038
2039
	if (!empty($config_vars))
2040
	{
2041
		$settingsArray[$end++] = '';
2042
		foreach ($config_vars as $var => $val)
2043
		{
2044
			if ($val != '#remove#')
2045
				$settingsArray[$end++] = '$' . $var . ' = ' . $val . ';' . "\n";
2046
		}
2047
	}
2048
	// This should be the last line and even last bytes of the file.
2049
	$settingsArray[$end] = '?' . '>';
2050

other/install.php 1 location

@@ 1722-1727 (lines=6) @@
1719
	}
1720
1721
	// Uh oh... the file wasn't empty... was it?
1722
	if (!empty($vars))
1723
	{
1724
		$settingsArray[$i++] = '';
1725
		foreach ($vars as $var => $val)
1726
			$settingsArray[$i++] = '$' . $var . ' = \'' . $val . '\';' . "\n";
1727
	}
1728
1729
	// Blank out the file - done to fix a oddity with some servers.
1730
	$fp = @fopen(dirname(__FILE__) . '/Settings.php', 'w');