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

@@ 1128-1132 (lines=5) @@
1125
		// Figure out storage engines - what do we have, etc.
1126
		$get_engines = $smcFunc['db_query']('', 'SHOW ENGINES', array());
1127
1128
		while ($row = $smcFunc['db_fetch_assoc']($get_engines))
1129
		{
1130
			if ($row['Support'] == 'YES' || $row['Support'] == 'DEFAULT')
1131
				$engines[] = $row['Engine'];
1132
		}
1133
1134
		// Done with this now
1135
		$smcFunc['db_free_result']($get_engines);