From 3978f827a6d5dea9b264e9e3e2196bb807acc805 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 4 Nov 2009 17:18:05 +0000 Subject: [PATCH] * (bug 21083) API: list=allusers no longer returns current timestamp for users without registration date --- RELEASE-NOTES | 2 ++ includes/api/ApiQueryAllUsers.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a2316d23f5..0585ed8fb3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -682,6 +682,8 @@ Hopefully we will remove this configuration var soon) * (bug 21106) Deprecated parameters now tagged in action=paraminfo * (bug 13453) rebuildrecentchanges maintenance script works on PG again * (bug 19004) Added support for tags +* (bug 21083) list=allusers no longer returns current timestamp for users + without registration date === Languages updated in 1.16 === diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 21dcbb22a7..d54bba9903 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -158,7 +158,7 @@ class ApiQueryAllUsers extends ApiQueryBase { if ($fld_editcount) $lastUserData['editcount'] = intval($row->user_editcount); if ($fld_registration) - $lastUserData['registration'] = wfTimestamp(TS_ISO_8601, $row->user_registration); + $lastUserData['registration'] = wfTimestampOrNull(TS_ISO_8601, $row->user_registration); } -- 2.20.1