Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | // Create the Abuse Filter user. |
225 | 225 | $user = User::newFromName( wfMsgForContent( 'abusefilter-blocker' ) ); |
226 | 226 | |
227 | | - if ( !$updater->updateRowExists( 'create abusefilter-blocker-user' ) ) { |
| 227 | + if ( $user && !$updater->updateRowExists( 'create abusefilter-blocker-user' ) ) { |
228 | 228 | if ( !$user->getId() ) { |
229 | 229 | $user->addToDatabase(); |
230 | 230 | $user->saveSettings(); |