stub2ref
[mdref/mdref] / mdref / Entry.php
index 152ba47232c38f9a2e8a2d6c25c494d5b9ef0047..345f3c7b5bcc5bc9a2e1599c2cf6e5010c56d4df 100644 (file)
@@ -293,7 +293,7 @@ class Entry implements IteratorAggregate {
         * @return bool
         */
        function hasIterator(?string $glob = null, bool $loose = false) : bool {
-               if (strlen($glob)) {
+               if (isset($glob) && strlen($glob)) {
                        return glob($this->getNextDirname() . "/$glob") ||
                                ($loose && glob($this->getNextDirname() . "/*/$glob"));
                } elseif ($this->isRoot()) {