Index: install-helper.php
===================================================================
--- install-helper.php	(revision 15382)
+++ install-helper.php	(working copy)
@@ -65,20 +65,14 @@
  */
 function maybe_create_table($table_name, $create_ddl) {
 	global $wpdb;
-	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
-		if ($table == $table_name) {
-			return true;
-		}
+	$clean_table_name = $wpdb->escape($table_name);
+	if(strtolower($wpdb->get_var("SHOW TABLES LIKE '$clean_table_name'")) == strtolower($table_name)) {
+		return true;
 	}
-	//didn't find it try to create it.
+	// didn't find it try to create it.
 	$wpdb->query($create_ddl);
 	// we cannot directly tell that whether this succeeded!
-	foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) {
-		if ($table == $table_name) {
-			return true;
-		}
-	}
-	return false;
+	return strtolower($wpdb->get_var("SHOW TABLES LIKE '$clean_table_name'")) == strtolower($table_name);
 }
 endif;
 
