Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -606,7 +606,7 @@ |
607 | 607 | $this->namespace = $title ? $title->getNamespace() : -1; |
608 | 608 | $this->dbKey = $title ? $title->getDBKey() : null; |
609 | 609 | $this->uid = $user ? $user->getId() : null; |
610 | | - if ( $offender !== '' ) { |
| 610 | + if( strlen($offender) ) { |
611 | 611 | $offender = User::newFromName( $offender, false ); |
612 | 612 | $this->author = is_null( $offender ) ? '' : $offender->getName(); |
613 | 613 | } else { |