r84858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84857‎ | r84858 | r84859 >
Date:17:09, 27 March 2011
Author:reedy
Status:ok
Tags:
Comment:
Swap 2 "and" for "&&"
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -1476,8 +1476,8 @@
14771477 * @return Int The user's ID; 0 if the user is anonymous or nonexistent
14781478 */
14791479 function getId() {
1480 - if( $this->mId === null and $this->mName !== null
1481 - and User::isIP( $this->mName ) ) {
 1480+ if( $this->mId === null && $this->mName !== null
 1481+ && User::isIP( $this->mName ) ) {
14821482 // Special case, we know the user is anonymous
14831483 return 0;
14841484 } elseif( $this->mId === null ) {

Status & tagging log