Check sub storage isn't null or false
This commit is contained in:
parent
cf3665057c
commit
8951769cae
|
@ -697,10 +697,11 @@ class View {
|
|||
$mountPoints = Filesystem::getMountPoints($path);
|
||||
foreach ($mountPoints as $mountPoint) {
|
||||
$subStorage = Filesystem::getStorage($mountPoint);
|
||||
$subCache = $subStorage->getCache();
|
||||
$rootEntry = $subCache->get('');
|
||||
|
||||
$data['size'] += $rootEntry['size'];
|
||||
if ($subStorage) {
|
||||
$subCache = $subStorage->getCache();
|
||||
$rootEntry = $subCache->get('');
|
||||
$data['size'] += $rootEntry['size'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue