diff --git a/layouts/v7/modules/Install/Step4.tpl b/layouts/v7/modules/Install/Step4.tpl
index 65f0db459f9ede03ee54ca9b77cd9eba68a62b06..aaec91255b6b7d21af7a84fbf85434ece86c761c 100644
--- a/layouts/v7/modules/Install/Step4.tpl
+++ b/layouts/v7/modules/Install/Step4.tpl
@@ -37,7 +37,11 @@
 								<td>{vtranslate('LBL_DATABASE_TYPE', 'Install')}<span class="no">*</span></td>
 								<td>
 									{vtranslate('MySQL', 'Install')}
-									<input type="hidden" value="mysql" name="db_type">
+									{if function_exists('mysqli_connect')}
+										<input type="hidden" value="mysqli" name="db_type">
+									{else}
+										<input type="hidden" value="mysql" name="db_type">
+									{/if}
 								</td>
 							</tr>
 							<tr>