mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Fixed warning when browsing Shared folder
The virtual "Shared" folder doesn't have an unencrypted_size field. This fix adds a check to prevent warnings in the log.
This commit is contained in:
parent
3c5185edab
commit
022d76c7bb
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ class Proxy extends \OC_FileProxy {
|
||||||
\OC_FileProxy::$enabled = false;
|
\OC_FileProxy::$enabled = false;
|
||||||
$fileInfo = $view->getFileInfo($path);
|
$fileInfo = $view->getFileInfo($path);
|
||||||
\OC_FileProxy::$enabled = $proxyState;
|
\OC_FileProxy::$enabled = $proxyState;
|
||||||
if ($fileInfo['unencrypted_size'] > 0) {
|
if (isset($fileInfo['unencrypted_size']) && $fileInfo['unencrypted_size'] > 0) {
|
||||||
return $fileInfo['unencrypted_size'];
|
return $fileInfo['unencrypted_size'];
|
||||||
}
|
}
|
||||||
return $size;
|
return $size;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue