From: Michael Wallner Date: Fri, 20 Dec 2013 15:18:26 +0000 (+0100) Subject: open_basedir fix X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bb4d2e0b980334642be5d3296bf0b8df27291ed6;p=mdref%2Fmdref open_basedir fix --- diff --git a/mdref/Finder.php b/mdref/Finder.php index e5cb7fb..26397ff 100644 --- a/mdref/Finder.php +++ b/mdref/Finder.php @@ -74,7 +74,7 @@ class Finder */ function glob(Path $path, $pattern, $flags = GLOB_BRACE) { if (strlen($path->getBaseDir())) { - return glob($path->getFullPath($pattern), $flags); + return glob($path->getFullPath($pattern), $flags) ?: array(); } $glob = array(); foreach ($this->refs as $ref) {