summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-29 21:20:28 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-29 21:20:28 +0000
commit5146574e3ccda9c4684cb89215951c10a4f707d0 (patch)
tree3c4cb43545b288482ccbd28630e669d3b0720beb /index.php
parent0c0b8c1f4290929ea56d1786a1085574c24d1a36 (diff)
downloadwordpress-mu-5146574e3ccda9c4684cb89215951c10a4f707d0.tar.gz
wordpress-mu-5146574e3ccda9c4684cb89215951c10a4f707d0.tar.xz
wordpress-mu-5146574e3ccda9c4684cb89215951c10a4f707d0.zip
Fix SQL - use auto_increment
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@106 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 83362ce..5a43b2d 100644
--- a/index.php
+++ b/index.php
@@ -388,11 +388,11 @@ function step3() {
$weblog_title = $wpdb->escape( $_POST[ 'weblog_title' ] );
// set up site tables
- $query = "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (1, 1, 'admin_email', '".$email."')";
+ $query = "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_email', '".$email."')";
$wpdb->query( $query );
- $query = "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (2, 1, 'admin_user_id', '1')";
+ $query = "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_user_id', '1')";
$wpdb->query( $query );
- $wpdb->query( "INSERT INTO ".$wpdb->site." ( id, domain, path ) VALUES ( '', '$domain', '$base' )" );
+ $wpdb->query( "INSERT INTO ".$wpdb->site." ( id, domain, path ) VALUES ( NULL, '$domain', '$base' )" );
$res = createBlog( $domain, $base, 'admin', $weblog_title, $email );
if( $res == 'ok' ) {