From: Siebrand Mazeland Date: Mon, 1 Apr 2013 18:31:47 +0000 (+0200) Subject: Unscrew something that doesn't make sense X-Git-Tag: 1.31.0-rc.0~20149^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=8032dd276ed844a12931cf610c25852f3a070898;p=lhc%2Fweb%2Fwiklou.git Unscrew something that doesn't make sense The probably makes the B/C work that never worked. Found using PHPStorm's "Type compatibility" analyser. Change-Id: I657c06aa7c8ef1ed5bc608a453f78adf0e04b375 --- diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index d2838e0123..ad06d5f5b5 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -88,7 +88,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { # was $wgUser if( $mode instanceof User ) { $args = func_get_args(); - if( count( $args >= 4 ) ) { + if ( count( $args ) >= 4 ) { $mode = $args[3]; } }