summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index f2d91065b9a..25ea6261a38 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1340,7 +1340,7 @@ class View {
try {
// if the file is not in the cache or needs to be updated, trigger the scanner and reload the data
- if (!$data || $data['size'] === -1) {
+ if (!$data || isset($data['size']) && $data['size'] === -1) {
if (!$storage->file_exists($internalPath)) {
return false;
}