From 81874262b1fc819d97f2437c770f38baea7f6762 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Fri, 25 Jul 2008 13:59:24 +0000 Subject: [PATCH] API change: Registration time of users registered before the DB field was created is now shown as empty instead of the current time. --- RELEASE-NOTES | 3 ++- includes/api/ApiQueryUsers.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d47035dfe6..86ee8ecbb4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -37,7 +37,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN === API changes in 1.14 === -None yet +* Registration time of users registered before the DB field was created is now + shown as empty instead of the current time. === Languages updated in 1.14 === diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 734ebcda35..4a60a1968a 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -100,7 +100,7 @@ if (!defined('MEDIAWIKI')) { if(isset($this->prop['editcount'])) $data[$r->user_name]['editcount'] = $r->user_editcount; if(isset($this->prop['registration'])) - $data[$r->user_name]['registration'] = wfTimestamp(TS_ISO_8601, $r->user_registration); + $data[$r->user_name]['registration'] = wfTimestampOrNull(TS_ISO_8601, $r->user_registration); if(isset($this->prop['groups'])) // This row contains only one group, others will be added from other rows if(!is_null($r->ug_group)) -- 2.20.1