Merge pull request #1572 from owncloud/fix_empty_path_handling

fix empty path handling
This commit is contained in:
icewind1991 2013-02-09 08:25:25 -08:00
commit 5a309c11ca
1 changed files with 1 additions and 1 deletions

View 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);
}