Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #146 from barryvdh/patch-2
Browse files Browse the repository at this point in the history
Check if dir exists before glob()
  • Loading branch information
Anahkiasen committed Feb 12, 2014
2 parents ba5c6a6 + 97ad1a9 commit 2c0df62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rocketeer/RocketeerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ protected function loadFileOrFolder(Container $app, $handle)
}

// Else include its contents
else {
elseif (is_dir($file)) {
$folder = glob($file.'/*.php');
foreach ($folder as $file) {
include $file;
Expand Down

0 comments on commit 2c0df62

Please sign in to comment.