From: Melos Date: Sun, 11 Feb 2018 07:43:47 +0000 (+0100) Subject: SpecialLog: replace unnecessary strict comparison X-Git-Tag: 1.31.0-rc.0~630^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=1be1fd6a644ea31227368486ab757ff1f740f991;p=lhc%2Fweb%2Fwiklou.git SpecialLog: replace unnecessary strict comparison As suggested in 409541 replace unnecessary strict comparison introduced in e6b2491736a9 Change-Id: I20a963be9aeac4274984cbcd2d7e97e040ceea9a --- diff --git a/includes/specials/SpecialLog.php b/includes/specials/SpecialLog.php index 10f4864cb9..cc4358069e 100644 --- a/includes/specials/SpecialLog.php +++ b/includes/specials/SpecialLog.php @@ -82,7 +82,7 @@ class SpecialLog extends SpecialPage { if ( $offender ) { if ( $offender->getId() > 0 ) { $qc = [ 'ls_field' => 'target_author_id', 'ls_value' => $offender->getId() ]; - } elseif ( empty( $opts->getValue( 'offender' ) ) === false ) { + } elseif ( !empty( $opts->getValue( 'offender' ) ) ) { $qc = [ 'ls_field' => 'target_author_ip', 'ls_value' => $offender->getName() ]; } }