Skip to content

Commit

Permalink
#3621 by andrewbelcher: Remove _core if it's empty. (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbelcher authored and jmolivas committed Jan 7, 2018
1 parent 384c54c commit ce6834c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Command/Shared/ExportTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ protected function getConfiguration($configName, $uuid = false, $hash = false, $
// Exclude default_config_hash inside _core is site-specific.
if ($hash) {
unset($config['_core']['default_config_hash']);

// Remove empty _core to match core's output.
if (empty($config['_core'])) {
unset($config['_core']);
}
}

return $config;
Expand Down

0 comments on commit ce6834c

Please sign in to comment.