Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 2 locations

@@ 5204-5205 (lines=2) @@
5201
			$original[$setVar] = isset($$setVar) ? '\'' . addslashes($$setVar) . '\'' : (strpos('fatal', $setType) ? null : '\'\'');
5202
		elseif ($setType == 'int' || $setType == 'int_fatal')
5203
			$original[$setVar] = isset($$setVar) ? (int) $$setVar : (strpos('fatal', $setType) ? null : 0);
5204
		elseif ($setType == 'bool' || $setType == 'bool_fatal')
5205
			$original[$setVar] = isset($$setVar) && in_array($$setVar, array(1, true)) ? 'true' : (strpos('fatal', $setType) ? null : 'false');
5206
		elseif ($setType == 'null' || $setType == 'null_fatal')
5207
			$original[$setVar] = isset($$setVar) && in_array($$setVar, array(1, true)) ? 'true' : (strpos('fatal', $setType) ? null : 'null');
5208
@@ 5206-5207 (lines=2) @@
5203
			$original[$setVar] = isset($$setVar) ? (int) $$setVar : (strpos('fatal', $setType) ? null : 0);
5204
		elseif ($setType == 'bool' || $setType == 'bool_fatal')
5205
			$original[$setVar] = isset($$setVar) && in_array($$setVar, array(1, true)) ? 'true' : (strpos('fatal', $setType) ? null : 'false');
5206
		elseif ($setType == 'null' || $setType == 'null_fatal')
5207
			$original[$setVar] = isset($$setVar) && in_array($$setVar, array(1, true)) ? 'true' : (strpos('fatal', $setType) ? null : 'null');
5208
5209
		// Well this isn't good.  Do we fix it or bail?
5210
		if (is_null($original) && $setType != 'null' && strpos('fatal', $setType) > -1)