From: Andrew Garrett Date: Thu, 26 Feb 2009 11:33:23 +0000 (+0000) Subject: Use getId() instead of mId in getEditCount(), so it works with unloaded user objects X-Git-Tag: 1.31.0-rc.0~42672 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=d6635eef302a674a9b468b1f64c5528fc2c8b7bc;p=lhc%2Fweb%2Fwiklou.git Use getId() instead of mId in getEditCount(), so it works with unloaded user objects --- 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);