Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-17 12:59:52 +0300
committerGitHub <noreply@github.com>2022-01-17 12:59:52 +0300
commit4903cb8db4094b1c20d96697a127e037a3406916 (patch)
tree7bb0da0fa4f103b17929b9ac0e98a95fc3dd7090
parent8496fdfe7b4a8026fb0d47b851976063aa5fa1cc (diff)
parent97e1855ed5e31faab98f6f6b95182aa0442e6900 (diff)
Merge pull request #29866 from nextcloud/isset-size
Check if size value is set
-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 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;
}