From d8b14ed47af4ebb3463c3daacd560c32dc853478 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20M=C3=BCller?= Date: Mon, 5 Aug 2013 13:51:45 +0200 Subject: [PATCH] use isset to prevent undefined index --- lib/files/cache/scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index 5588861fe90..54f5d79eca7 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -85,7 +85,7 @@ class Scanner { $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']; } -- 2.39.5