diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-05 07:47:29 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-05 07:47:29 -0700 |
commit | 1bbe97934538afbe9772a02f25377c8e49fabb35 (patch) | |
tree | aa99ef6f3237297ad5922f4a7d417203dcbb3b44 | |
parent | f55fbc90933d51c509a27dcb0f82888bfb020f04 (diff) | |
parent | 464afb5ecac95124c55b6a8af38410732a76275c (diff) | |
download | nextcloud-server-1bbe97934538afbe9772a02f25377c8e49fabb35.tar.gz nextcloud-server-1bbe97934538afbe9772a02f25377c8e49fabb35.zip |
Merge pull request #4319 from owncloud/fixing-undefined-index-mtime-cache-scanner-master
use isset to prevent undefined index
-rw-r--r-- | lib/files/cache/scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index dd212d84cc5..adecc2bb901 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -98,7 +98,7 @@ class Scanner extends BasicEmitter { $newData = $data; if ($reuseExisting and $cacheData = $this->cache->get($file)) { // only reuse data if the file hasn't explicitly changed - if ($data['mtime'] === $cacheData['mtime']) { + if (isset($data['mtime']) && isset($cacheData['mtime']) && $data['mtime'] === $cacheData['mtime']) { if (($reuseExisting & self::REUSE_SIZE) && ($data['size'] === -1)) { $data['size'] = $cacheData['size']; } |