Fixup "} elseif ( $cond[0] = '!' ) {" from r35983
authorSam Reed <reedy@users.mediawiki.org>
Wed, 13 Oct 2010 19:01:21 +0000 (19:01 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 13 Oct 2010 19:01:21 +0000 (19:01 +0000)
NB, why are some revisions marked ok by no one? :S

includes/Autopromote.php

index e8ef7fc..5f612da 100644 (file)
@@ -74,7 +74,7 @@ class Autopromote {
                                }
 
                                return $res;
-                       } elseif ( $cond[0] = '!' ) {
+                       } elseif ( $cond[0] == '!' ) {
                                foreach ( array_slice( $cond, 1 ) as $subcond ) {
                                        if ( self::recCheckCondition( $subcond, $user ) ) {
                                                return false;