Browse Source

Merge pull request #29866 from nextcloud/isset-size

Check if size value is set
Vincent Petry 2 years ago
parent
commit
4903cb8db4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/private/Files/View.php

+ 1 - 1
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;
 				}