]> scripts.mit.edu Git - autoinstallsdev/wordpress.git/blobdiff - wp-admin/install-helper.php
Wordpress 2.5.1
[autoinstallsdev/wordpress.git] / wp-admin / install-helper.php
index b53376eb3ca60eb9452505b07ab45c9f6396ee68..d124b1a311a2d92087646f089c29a7b54a06140e 100644 (file)
@@ -16,7 +16,7 @@ function maybe_create_table($table_name, $create_ddl) {
                }
        }
        //didn't find it try to create it.
-       $q = $wpdb->query($create_ddl);
+       $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) {
@@ -41,7 +41,7 @@ function maybe_add_column($table_name, $column_name, $create_ddl) {
                        }
        }
        //didn't find it try to create it.
-       $q = $wpdb->query($create_ddl);
+       $wpdb->query($create_ddl);
        // we cannot directly tell that whether this succeeded!
        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
                if ($column == $column_name) {
@@ -63,7 +63,7 @@ function maybe_drop_column($table_name, $column_name, $drop_ddl) {
        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
                if ($column == $column_name) {
                        //found it try to drop it.
-                       $q = $wpdb->query($drop_ddl);
+                       $wpdb->query($drop_ddl);
                        // we cannot directly tell that whether this succeeded!
                        foreach ($wpdb->get_col("DESC $table_name",0) as $column ) {
                                if ($column == $column_name) {