Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -417,7 +417,6 @@ |
418 | 418 | # that the user is allowed to set... |
419 | 419 | foreach ( self::getDimensions() as $qal => $levels ) { |
420 | 420 | $level = isset( $flags[$qal] ) ? $flags[$qal] : 0; |
421 | | - $highest = count( $levels ) - 1; // highest valid level |
422 | 421 | if ( !self::userCanSetTag( $user, $qal, $level ) ) { |
423 | 422 | return false; // user cannot set proposed flag |
424 | 423 | } elseif ( isset( $oldflags[$qal] ) |
— | — | @@ -1180,8 +1179,10 @@ |
1181 | 1180 | { |
1182 | 1181 | case FR_PRISTINE: |
1183 | 1182 | $minLevels = self::$minPL; |
| 1183 | + break; |
1184 | 1184 | case FR_QUALITY: |
1185 | 1185 | $minLevels = self::$minQL; |
| 1186 | + break; |
1186 | 1187 | default: |
1187 | 1188 | $minLevels = self::$minSL; |
1188 | 1189 | } |