API change: Registration time of users registered before the DB field was created...
authorRotem Liss <rotem@users.mediawiki.org>
Fri, 25 Jul 2008 13:59:24 +0000 (13:59 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Fri, 25 Jul 2008 13:59:24 +0000 (13:59 +0000)
RELEASE-NOTES
includes/api/ApiQueryUsers.php

index d47035d..86ee8ec 100644 (file)
@@ -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 ===
 
index 734ebcd..4a60a19 100644 (file)
@@ -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))