More useful debug output
[lhc/web/wiklou.git] / includes / Autopromote.php
index e8ef7fc..b4d89b2 100644 (file)
@@ -17,8 +17,9 @@ class Autopromote {
                $promote = array();
 
                foreach ( $wgAutopromote as $group => $cond ) {
-                       if ( self::recCheckCondition( $cond, $user ) )
+                       if ( self::recCheckCondition( $cond, $user ) ) {
                                $promote[] = $group;
+                       }
                }
 
                wfRunHooks( 'GetAutoPromoteGroups', array( $user, &$promote ) );
@@ -74,7 +75,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;