From: Alexandre Emsenhuber Date: Wed, 4 Nov 2009 17:18:05 +0000 (+0000) Subject: * (bug 21083) API: list=allusers no longer returns current timestamp for users withou... X-Git-Tag: 1.31.0-rc.0~38975 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=3978f827a6d5dea9b264e9e3e2196bb807acc805;p=lhc%2Fweb%2Fwiklou.git * (bug 21083) API: list=allusers no longer returns current timestamp for users without registration date --- 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); }