r47779 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47778‎ | r47779 | r47780 >
Date:02:40, 25 February 2009
Author:werdna
Status:ok
Tags:
Comment:
Fatal
Modified paths:
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewExamine.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewExamine.php
@@ -212,7 +212,7 @@
213213 // Normalise username
214214 $userTitle = Title::newFromText( $searchUsername );
215215
216 - if ( $userTitle->getNamespace() == NS_USER )
 216+ if ( $userTitle && $userTitle->getNamespace() == NS_USER )
217217 $this->mSearchUser = $userTitle->getText(); // Allow User:Blah syntax.
218218 elseif ( $userTitle )
219219 // Not sure of the value of prefixedText over text, but no need to munge unnecessarily.

Status & tagging log