summaryrefslogtreecommitdiffstats
path: root/lib/files/cache/scanner.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-09 16:58:55 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-09 16:58:55 +0100
commit420b63cbe48a37204762953332bbc2973217661f (patch)
treee2b788ba0e0b4f6894fc28fcf1e2cdd93b5416ca /lib/files/cache/scanner.php
parent0c73cae77b402355809c8f5f5be69d8a730fe3e2 (diff)
downloadnextcloud-server-420b63cbe48a37204762953332bbc2973217661f.tar.gz
nextcloud-server-420b63cbe48a37204762953332bbc2973217661f.zip
fix empty path handling
Diffstat (limited to 'lib/files/cache/scanner.php')
-rw-r--r--lib/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
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);
}