Browse Source

Only show MySQLi if the server supports it

Signed-off-by: jdarwood007 <[email protected]>
jdarwood007 11 years ago
parent
commit
d06aedba14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      other/upgrade.php

+ 1 - 1
other/upgrade.php

@@ -3943,7 +3943,7 @@ function template_upgrade_options()
 					</tr>';
 
 	// Offer mysql users to switch to mysqli
-	if ($db_type == 'mysql')
+	if ($db_type == 'mysql' && function_exists('mysqli_query'))
 		echo '
 					<tr valign="top">
 						<td width="2%">