Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | --group Comma separated list of group IDs (cannot use groupprefix) |
27 | 27 | --groupprefix Prefix of group IDs to be exported message groups (cannot use |
28 | 28 | group) |
| 29 | + --help This help message |
29 | 30 | --threshold Do not export under this percentage translated |
30 | 31 | --ppgettext Group root path for checkout of product. "msgmerge" will post |
31 | 32 | process on the export result based on the current definitionFile |
— | — | @@ -95,7 +96,11 @@ |
96 | 97 | |
97 | 98 | // Get groups and add groups to array |
98 | 99 | foreach ( $groupIds as $groupId ) { |
99 | | - $groups[$groupId] = MessageGroups::getGroup( $groupId ); |
| 100 | + $group = MessageGroups::getGroup( $groupId ); |
| 101 | + |
| 102 | + if( $group !== null ) { |
| 103 | + $groups[$groupId] = $group; |
| 104 | + } |
100 | 105 | } |
101 | 106 | } else { |
102 | 107 | // Apparently using option groupprefix. Find groups that match. |