Merge pull request #1572 from owncloud/fix_empty_path_handling
fix empty path handling
This commit is contained in:
commit
5a309c11ca
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue