User::isAnon() via User::isLoggedIn() has unexpected behavior from an optimization...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 27 Dec 2007 05:10:03 +0000 (05:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 27 Dec 2007 05:10:03 +0000 (05:10 +0000)
commite971a416929e1e2e7e2d751e4c65e4dc1958db5a
treee89aa4306eb5c6d4e3862daf9a0b6cc1982c9940
parente2a6de127d88174bee2ef4f16d78195725aee26d
User::isAnon() via User::isLoggedIn() has unexpected behavior from an optimization if the data isn't loaded and the referenced name doesn't exist. Not sure if that's desired or not; adding a comment note on the code and using a clearer check in special:userrights
includes/SpecialUserrights.php
includes/User.php