Skip to content

Commit

Permalink
Fixes #162
Browse files Browse the repository at this point in the history
If the `languages` key was excluded it would still appear in the JSON output files.
  • Loading branch information
Techbrunch committed Jan 21, 2016
1 parent 35e39e7 commit 938fb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MLD/Converter/AbstractJsonConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ abstract class AbstractJsonConverter extends AbstractConverter {
*/
protected function processEmptyArrays() {
array_walk($this->aCountries, function (&$aCountry) {
if (empty($aCountry['languages'])) {
if (isset($aCountry['languages']) && empty($aCountry['languages'])) {
$aCountry['languages'] = new \stdClass();
}
});
}
}
}

0 comments on commit 938fb5f

Please sign in to comment.