open_basedir fix
authorMichael Wallner <mike@php.net>
Fri, 20 Dec 2013 15:18:26 +0000 (16:18 +0100)
committerMichael Wallner <mike@php.net>
Fri, 20 Dec 2013 15:18:26 +0000 (16:18 +0100)
mdref/Finder.php

index e5cb7fb68c16816a618ddcb285ffddd8e8ea5f82..26397ff316d8b243e97d751e95b5b2c0cd01b588 100644 (file)
@@ -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) {