Skip to content

Commit

Permalink
check that we have the file id
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Feb 10, 2015
1 parent ddcd9ce commit b31ad2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/files/cache/scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData =
if (is_null($cacheData)) {
$cacheData = $this->cache->get($file);
}
if ($cacheData and $reuseExisting) {
if ($cacheData and $reuseExisting and isset($cacheData['fileid'])) {
// prevent empty etag
if (empty($cacheData['etag'])) {
$etag = $data['etag'];
Expand Down

0 comments on commit b31ad2b

Please sign in to comment.