diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-09-27 20:16:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-09-27 20:16:17 +0000 |
commit | 4cbb7b75121436c0dd933eb085cd376824a70c31 (patch) | |
tree | 7b40b4b039290d02b615480d94222ffb184c0a49 | |
parent | b2a734fdf73fea4593819725ee02782923c3ae6d (diff) | |
download | brdo-4cbb7b75121436c0dd933eb085cd376824a70c31.tar.gz brdo-4cbb7b75121436c0dd933eb085cd376824a70c31.tar.bz2 |
- Patch #312306 by Jaza: no activation e-mail for user 1.
-rw-r--r-- | modules/system/system.install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index d2eccffcc..cbdc52ff8 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -371,7 +371,7 @@ function system_install() { // presumed to be a serialized array. Install will change uid 1 immediately // anyways. So we insert the superuser here, the uid is 2 here for now, but // very soon it will be changed to 1. - db_query("INSERT INTO {users} (name, mail, created, data) VALUES('%s', '%s', %d, '%s')", 'placeholder-for-uid-1', 'placeholder-for-uid-1', REQUEST_TIME, serialize(array())); + db_query("INSERT INTO {users} (name, mail, created, status, data) VALUES('%s', '%s', %d, %d, '%s')", 'placeholder-for-uid-1', 'placeholder-for-uid-1', REQUEST_TIME, 1, serialize(array())); // This sets the above two users uid 0 (anonymous). We avoid an explicit 0 // otherwise MySQL might insert the next auto_increment value. db_query("UPDATE {users} SET uid = uid - uid WHERE name = '%s'", ''); |