]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix empty path handling
authorJörn Friedrich Dreyer <jfd@butonic.de>
Sat, 9 Feb 2013 15:58:55 +0000 (16:58 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Sat, 9 Feb 2013 15:58:55 +0000 (16:58 +0100)
lib/files/cache/scanner.php

index 8d504af6163caf4d30642efce8f0ca531cbd60b4..9a5546dce3f59db5221755ac06eba3219352da67 100644 (file)
@@ -138,7 +138,7 @@ class Scanner {
         * walk over any folders that are not fully scanned yet and scan them
         */
        public function backgroundScan() {
-               while ($path = $this->cache->getIncomplete()) {
+               while (($path = $this->cache->getIncomplete()) !== false) {
                        $this->scan($path);
                        $this->cache->correctFolderSize($path);
                }