Index: trunk/extensions/OnlineStatusBar/OnlineStatusBarHooks.php |
— | — | @@ -185,13 +185,15 @@ |
186 | 186 | return true; |
187 | 187 | } |
188 | 188 | |
| 189 | + // get a status of user parsed from title |
189 | 190 | $result = OnlineStatusBar::getUserInfoFromTitle( $parser->getTitle() ); |
190 | | - if ( User::isIP( $parser->getTitle()->getBaseText() ) && $result == null ) { |
| 191 | + // if user is IP and we track them |
| 192 | + if ( User::isIP( $parser->getTitle()->getBaseText() ) && $result === false ) { |
191 | 193 | $result = OnlineStatusBar::getAnonFromTitle( $parser->getTitle() ); |
192 | 194 | } |
193 | 195 | |
194 | | - if ( $result == false ) { |
195 | | - $ret = "unknown"; |
| 196 | + if ( $result === false ) { |
| 197 | + $ret = 'unknown'; |
196 | 198 | return true; |
197 | 199 | } |
198 | 200 | |