Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -140,9 +140,11 @@ |
141 | 141 | if ( $status !== false ) { |
142 | 142 | $description = $status . $description; |
143 | 143 | } |
144 | | - $priorityLangs = array_flip( explode( ',', TranslateMetadata::get( $this->group->getId(), 'prioritylangs' ) ) ); |
145 | | - $priorityForce = TranslateMetadata::get( $this->group->getId(), 'priorityforce' ); |
146 | | - if ( count( $priorityLangs ) && !isset( $priorityLangs[$this->options['language']] ) ) { |
| 144 | + |
| 145 | + $priorityLangs = TranslateMetadata::get( $this->group->getId(), 'prioritylangs' ); |
| 146 | + if ( $priorityLangs !== false && !isset( $priorityLangs[$this->options['language']] ) ) { |
| 147 | + $priorityLangs = array_flip( explode( ',', $priorityLangs ) ); |
| 148 | + $priorityForce = TranslateMetadata::get( $this->group->getId(), 'priorityforce' ); |
147 | 149 | $priorityReason = TranslateMetadata::get( $this->group->getId(), 'priorityreason' ); |
148 | 150 | if ( $priorityForce === 'on' ) { |
149 | 151 | // Hide table |