diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-01-17 10:59:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 10:59:52 +0100 |
commit | 4903cb8db4094b1c20d96697a127e037a3406916 (patch) | |
tree | 7bb0da0fa4f103b17929b9ac0e98a95fc3dd7090 /lib | |
parent | 8496fdfe7b4a8026fb0d47b851976063aa5fa1cc (diff) | |
parent | 97e1855ed5e31faab98f6f6b95182aa0442e6900 (diff) | |
download | nextcloud-server-4903cb8db4094b1c20d96697a127e037a3406916.tar.gz nextcloud-server-4903cb8db4094b1c20d96697a127e037a3406916.zip |
Merge pull request #29866 from nextcloud/isset-size
Check if size value is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/View.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 271b7a27321..3cdc6166840 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; } |