summaryrefslogtreecommitdiffstats
path: root/lib/files/cache
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-07-28 15:32:48 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-07-28 15:32:48 -0400
commitc8e60900fc75de39fbdf4dc6880f2e1cd61654ec (patch)
tree56b741bccf9004d0a2158b8bdc7f86c8f2769e7a /lib/files/cache
parent48621115c10f62f776dbe41ad9a51c1ac360fc8c (diff)
downloadnextcloud-server-c8e60900fc75de39fbdf4dc6880f2e1cd61654ec.tar.gz
nextcloud-server-c8e60900fc75de39fbdf4dc6880f2e1cd61654ec.zip
Move check so the variable will never be undefined
Diffstat (limited to 'lib/files/cache')
-rw-r--r--lib/files/cache/scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index bcd6032fcac..520b41fe104 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -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;
}