Remove code that looks like it came from Perl as it “works” (doesn't produce an error...
authorMark A. Hershberger <mah@users.mediawiki.org>
Fri, 23 Apr 2010 17:29:17 +0000 (17:29 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Fri, 23 Apr 2010 17:29:17 +0000 (17:29 +0000)
    $ php -r '$a = array();var_dump($a > 0);'
    bool(true)

includes/Title.php

index 09d68b2..aa6b8bf 100644 (file)
@@ -1408,7 +1408,7 @@ class Title {
                        # Several cascading protected pages may include this page...
                        # Check each cascading level
                        # This is only for protection restrictions, not for all actions
-                       if( $cascadingSources > 0 && isset($restrictions[$action]) ) {
+                       if( isset($restrictions[$action]) ) {
                                foreach( $restrictions[$action] as $right ) {
                                        $right = ( $right == 'sysop' ) ? 'protect' : $right;
                                        if( $right != '' && !$user->isAllowed( $right ) ) {