Fix fatal under MediaWiki 1.24

Change-Id: I6c989eb90878376c42f06d5da59b3473075dc3e5
This commit is contained in:
Jack Phoenix 2014-12-08 12:16:04 +02:00
parent 5b274ffd83
commit e7cf420d72

View file

@ -23,7 +23,7 @@ class Editcount extends IncludableSpecialPage {
$user = User::newFromName( $username );
$username = is_object( $user ) ? $user->getName() : '';
$uid = $user->getId();
$uid = ( $user instanceof User ? $user->getId() : 0 );
if ( $this->including() ) {
if ( $namespace === null ) {