Unscrew something that doesn't make sense
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 18:31:47 +0000 (20:31 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 18:31:47 +0000 (20:31 +0200)
The probably makes the B/C work that never worked.

Found using PHPStorm's "Type compatibility" analyser.

Change-Id: I657c06aa7c8ef1ed5bc608a453f78adf0e04b375

includes/specials/SpecialEditWatchlist.php

index d2838e0..ad06d5f 100644 (file)
@@ -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];
                        }
                }