From d6635eef302a674a9b468b1f64c5528fc2c8b7bc Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Thu, 26 Feb 2009 11:33:23 +0000 Subject: [PATCH] Use getId() instead of mId in getEditCount(), so it works with unloaded user objects --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index cc57c2ba62..4289b2ad2d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2020,7 +2020,7 @@ class User { * @return \int User'e edit count */ function getEditCount() { - if ($this->mId) { + if ($this->getId()) { if ( !isset( $this->mEditCount ) ) { /* Populate the count, if it has not been populated yet */ $this->mEditCount = User::edits($this->mId); -- 2.20.1