Skip to content

Commit

Permalink
[console] Return empty array if no config directories found. (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Feb 12, 2018
1 parent cce0dbe commit 094c050
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ public function getSites()
}

$sitesDirectories = $this->getSitesDirectories();

if (!$sitesDirectories) {
return [];
}

$finder = new Finder();
$finder->in($sitesDirectories);
$finder->name("*.yml");
Expand Down

0 comments on commit 094c050

Please sign in to comment.