Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -965,6 +965,8 @@ |
966 | 966 | * @return string, css color for this quality |
967 | 967 | */ |
968 | 968 | public static function getQualityColor( $quality ) { |
| 969 | + if( $quality === false ) |
| 970 | + return 'flaggedrevs-color-0'; |
969 | 971 | switch( $quality ) { |
970 | 972 | case 2: |
971 | 973 | $css = 'flaggedrevs-color-3'; |
— | — | @@ -972,7 +974,7 @@ |
973 | 975 | case 1: |
974 | 976 | $css = 'flaggedrevs-color-2'; |
975 | 977 | break; |
976 | | - default: |
| 978 | + case 0: |
977 | 979 | $css = 'flaggedrevs-color-1'; |
978 | 980 | break; |
979 | 981 | } |