fix empty path handling

This commit is contained in:
Jörn Friedrich Dreyer 2013-02-09 16:58:55 +01:00
parent 0c73cae77b
commit 420b63cbe4
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);
}