add cli server script
[mdref/mdref] / 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) {