Skip to content

Commit

Permalink
Update DumpCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hpolthof authored Sep 2, 2016
1 parent 0921dd5 commit d8fd83a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Console/Commands/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8fd83a

Please sign in to comment.