Code Duplication    Length = 5-5 lines in 2 locations

Sources/DbPackages-mysql.php 1 location

@@ 156-160 (lines=5) @@
153
		// Figure out which engines we have
154
		$get_engines = $smcFunc['db_query']('', 'SHOW ENGINES', array());
155
156
		while ($row = $smcFunc['db_fetch_assoc']($get_engines))
157
		{
158
			if ($row['Support'] == 'YES' || $row['Support'] == 'DEFAULT')
159
				$engines[] = $row['Engine'];
160
		}
161
162
		$smcFunc['db_free_result']($get_engines);
163
	}

other/install.php 1 location

@@ 1087-1091 (lines=5) @@
1084
		// Figure out storage engines - what do we have, etc.
1085
		$get_engines = $smcFunc['db_query']('', 'SHOW ENGINES', array());
1086
1087
		while ($row = $smcFunc['db_fetch_assoc']($get_engines))
1088
		{
1089
			if ($row['Support'] == 'YES' || $row['Support'] == 'DEFAULT')
1090
				$engines[] = $row['Engine'];
1091
		}
1092
1093
		// Done with this now
1094
		$smcFunc['db_free_result']($get_engines);