Merge pull request #4218 from owncloud/newdata

Fix potential undefined variable in Scanner
This commit is contained in:
icewind1991 2013-07-28 16:31:48 -07:00
commit 3d76530628
1 changed files with 3 additions and 3 deletions

View File

@ -108,9 +108,9 @@ class Scanner extends BasicEmitter {
// Only update metadata that has changed
$newData = array_diff($data, $cacheData);
}
}
if (!empty($newData)) {
$this->cache->put($file, $newData);
if (!empty($newData)) {
$this->cache->put($file, $newData);
}
}
return $data;
}