Code Duplication    Length = 5-5 lines in 2 locations

Sources/DbPackages-mysql.php 1 location

@@ 173-177 (lines=5) @@
170
		// Figure out which engines we have
171
		$get_engines = $smcFunc['db_query']('', 'SHOW ENGINES', array());
172
173
		while ($row = $smcFunc['db_fetch_assoc']($get_engines))
174
		{
175
			if ($row['Support'] == 'YES' || $row['Support'] == 'DEFAULT')
176
				$engines[] = $row['Engine'];
177
		}
178
179
		$smcFunc['db_free_result']($get_engines);
180
	}

other/install.php 1 location

@@ 1139-1143 (lines=5) @@
1136
		// Figure out storage engines - what do we have, etc.
1137
		$get_engines = $smcFunc['db_query']('', 'SHOW ENGINES', array());
1138
1139
		while ($row = $smcFunc['db_fetch_assoc']($get_engines))
1140
		{
1141
			if ($row['Support'] == 'YES' || $row['Support'] == 'DEFAULT')
1142
				$engines[] = $row['Engine'];
1143
		}
1144
1145
		// Done with this now
1146
		$smcFunc['db_free_result']($get_engines);