From eb9fc474541407ea8f591851137f9965c6f50fdc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 22 Dec 2006 23:46:08 +0000 Subject: [PATCH] * Initialize user_editcount to 0 instead of NULL for newly created accounts --- RELEASE-NOTES | 2 ++ includes/User.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 06b965c405..68a3ed039a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 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 == diff --git a/includes/User.php b/includes/User.php index 1febe511d4..752969ccee 100644 --- a/includes/User.php +++ b/includes/User.php @@ -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(); -- 2.20.1