diff --git a/src/Console/Commands/DumpCommand.php b/src/Console/Commands/DumpCommand.php index be63aad..98ed6f3 100644 --- a/src/Console/Commands/DumpCommand.php +++ b/src/Console/Commands/DumpCommand.php @@ -186,7 +186,12 @@ private function convertToOrderedNestedArray($content) { $new_content = array(); foreach ($content as $key => $value) { - $this->assignArrayByPath($new_content, $key, $value); + // Quick fix, see: https://github.com/hpolthof/laravel-translations-db/issues/13 + //$this->assignArrayByPath($new_content, $key, $value); + if($value){ + array_set($new_content, $key, $value); + } + ksort($new_content); } $content = $new_content; return $content;