* Initialize user_editcount to 0 instead of NULL for newly created accounts
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 22 Dec 2006 23:46:08 +0000 (23:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 22 Dec 2006 23:46:08 +0000 (23:46 +0000)
RELEASE-NOTES
includes/User.php

index 06b965c..68a3ed0 100644 (file)
@@ -380,6 +380,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 532) Tweaked alt text for some interface messages
 * (bug 8231) Gave useful alt text to the main <img> on image pages
 * (bug 371) Remove alt text for "Enlarge" icon on thumbnails
+* Initialize user_editcount to 0 instead of NULL for newly created accounts
+
 
 == Languages updated ==
 
index 1febe51..752969c 100644 (file)
@@ -1933,6 +1933,7 @@ class User {
                        'user_options' => $user->encodeOptions(),
                        'user_token' => $user->mToken,
                        'user_registration' => $dbw->timestamp( $user->mRegistration ),
+                       'user_editcount' => 0,
                );
                foreach ( $params as $name => $value ) {
                        $fields["user_$name"] = $value;
@@ -1966,6 +1967,7 @@ class User {
                                'user_options' => $this->encodeOptions(),
                                'user_token' => $this->mToken,
                                'user_registration' => $dbw->timestamp( $this->mRegistration ),
+                               'user_editcount' => 0,
                        ), __METHOD__
                );
                $this->mId = $dbw->insertId();