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);
|
$mountPoints = Filesystem::getMountPoints($path);
|
||||||
foreach ($mountPoints as $mountPoint) {
|
foreach ($mountPoints as $mountPoint) {
|
||||||
$subStorage = Filesystem::getStorage($mountPoint);
|
$subStorage = Filesystem::getStorage($mountPoint);
|
||||||
$subCache = $subStorage->getCache();
|
if ($subStorage) {
|
||||||
$rootEntry = $subCache->get('');
|
$subCache = $subStorage->getCache();
|
||||||
|
$rootEntry = $subCache->get('');
|
||||||
$data['size'] += $rootEntry['size'];
|
$data['size'] += $rootEntry['size'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue