diff options
author | acsfer <carlos@reendex.com> | 2021-11-23 21:33:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 21:33:28 +0100 |
commit | 0a0fd3377310ce4faa72568089746b12c28e0679 (patch) | |
tree | 249899abe5bed736998540661f005f12ad635cf3 /lib | |
parent | fd487c1a43874bf7eaeebe2ff822e18978b6d1e1 (diff) | |
download | nextcloud-server-0a0fd3377310ce4faa72568089746b12c28e0679.tar.gz nextcloud-server-0a0fd3377310ce4faa72568089746b12c28e0679.zip |
Check if size value is set
Using `isset()` as it does not return true for array keys that correspond to a `null` value, while `array_key_exists()` does.
Fix #29865
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 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; } |