From 86f780b9241a646706de259790bba6b438be4922 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 21 Apr 2010 17:33:17 +0000 Subject: [PATCH] (bug 16487) Do not display the fake Anonymous user account used by Postgres on Special:Listusers. It will surely still produce strange results on many more places, though. --- RELEASE-NOTES | 2 ++ includes/specials/SpecialListusers.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6803516f1b..cb665453f2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -121,6 +121,8 @@ in a negative namespace (which is invalid). * (bug 23080) New usernames now limited to 235 bytes so that custom skin files work. * (bug 23075) Correct MediaTransformError default width in gallery. +* (bug 16487) The Anonymous user account used on Postgres is no longer + displayed on Special:Listusers. === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index bdb59980c9..0ccd44bf51 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -120,6 +120,9 @@ class UsersPager extends AlphabeticPager { function formatRow( $row ) { global $wgLang; + if ($row->user_id == 0) #Bug 16487 + return ''; + $userPage = Title::makeTitle( NS_USER, $row->user_name ); $name = $this->getSkin()->link( $userPage, htmlspecialchars( $userPage->getText() ) ); -- 2.20.1