Преглед на файлове

Merge pull request #29866 from nextcloud/isset-size

Check if size value is set
tags/v24.0.0beta1
Vincent Petry преди 2 години
родител
ревизия
4903cb8db4
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
}

Loading…
Отказ
Запис