Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -134,8 +134,8 @@ |
135 | 135 | } |
136 | 136 | |
137 | 137 | foreach ( $langs as $lang ) { |
138 | | - // Do not export if language code is to be skipped. |
139 | | - if( in_array( $lang, $skip ) && !$group->isValidLanguage( $lang ) ) { |
| 138 | + // Do not export if language code is to be skipped or is not a valid language. |
| 139 | + if( in_array( $lang, $skip ) || !$group->isValidLanguage( $lang ) ) { |
140 | 140 | continue; |
141 | 141 | } |
142 | 142 | |