From: Jörn Friedrich Dreyer Date: Sat, 9 Feb 2013 15:58:55 +0000 (+0100) Subject: fix empty path handling X-Git-Tag: v5.0.0alpha1~59^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=420b63cbe48a37204762953332bbc2973217661f;p=nextcloud-server.git fix empty path handling --- diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index 8d504af6163..9a5546dce3f 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -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); }