r47194 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47193‎ | r47194 | r47195 >
Date:19:47, 12 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
Fix bug where no items were shown on initial view
Modified paths:
  • /trunk/extensions/Oversight/HideRevision_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Oversight/HideRevision_body.php
@@ -606,7 +606,7 @@
607607 $this->namespace = $title ? $title->getNamespace() : -1;
608608 $this->dbKey = $title ? $title->getDBKey() : null;
609609 $this->uid = $user ? $user->getId() : null;
610 - if ( $offender !== '' ) {
 610+ if( strlen($offender) ) {
611611 $offender = User::newFromName( $offender, false );
612612 $this->author = is_null( $offender ) ? '' : $offender->getName();
613613 } else {

Status & tagging log