Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | } |
129 | 129 | $user = User::newFromName( $id ); |
130 | 130 | // check if exist |
131 | | - if ( $user === null ) { |
| 131 | + if ( $user == null ) { |
132 | 132 | return false; |
133 | 133 | } |
134 | 134 | // do we track them |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | $dbw = wfGetDB( DB_MASTER ); |
148 | 148 | OnlineStatusBar::DeleteOld(); |
149 | 149 | $user = User::newFromName( $userID ); |
150 | | - if ( $user === null ) { |
| 150 | + if ( $user == null ) { |
151 | 151 | // something is wrong |
152 | 152 | return $wgOnlineStatusBarDefaultOffline; |
153 | 153 | } |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | |
73 | 73 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'wfOnlineStatusBar_CkSchema'; |
74 | 74 | function wfOnlineStatusBar_CkSchema( $updater = null ) { |
75 | | - if ( ( $updater === null ) != true ){ |
| 75 | + if ( $updater !== null ){ |
76 | 76 | $updater->addExtensionUpdate( array( 'addtable', 'online_status', dirname( __FILE__ ) . '/OnlineStatusBar.sql', true ) ); |
77 | 77 | } else { |
78 | 78 | global $wgExtNewTables; |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | $ns = $article->getTitle()->getNamespace(); |
96 | 96 | if ( ( $ns == NS_USER_TALK ) || ( $ns == NS_USER ) ) { |
97 | 97 | $user = OnlineStatusBar::GetOwnerFromTitle ( $article->getTitle() ); |
98 | | - if ( $user === null ) { |
| 98 | + if ( $user == null ) { |
99 | 99 | return true; |
100 | 100 | } |
101 | 101 | $username = $user->getName(); |