Index: trunk/extensions/Translate/utils/StatsTable.php |
— | — | @@ -246,8 +246,8 @@ |
247 | 247 | /** |
248 | 248 | * Check whether translations in given group in given language |
249 | 249 | * has been disabled. |
250 | | - * @param $groupId string \Message group id |
251 | | - * @param $code string \Language code |
| 250 | + * @param $groupId string Message group id |
| 251 | + * @param $code string Language code |
252 | 252 | * @return bool |
253 | 253 | */ |
254 | 254 | public function isBlacklisted( $groupId, $code ) { |
— | — | @@ -262,7 +262,9 @@ |
263 | 263 | ); |
264 | 264 | |
265 | 265 | foreach ( $checks as $check ) { |
266 | | - $blacklisted = @$wgTranslateBlacklist[$check][$code]; |
| 266 | + if ( isset( $wgTranslateBlacklist[$check] ) && isset( $wgTranslateBlacklist[$check][$code] ) ) { |
| 267 | + $blacklisted = $wgTranslateBlacklist[$check][$code]; |
| 268 | + } |
267 | 269 | |
268 | 270 | if ( $blacklisted !== null ) { |
269 | 271 | break; |