mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 12:54:24 -04:00
Move check so the variable will never be undefined
This commit is contained in:
parent
48621115c1
commit
c8e60900fc
1 changed files with 3 additions and 3 deletions
6
lib/files/cache/scanner.php
vendored
6
lib/files/cache/scanner.php
vendored
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue