Check sub storage isn't null or false

This commit is contained in:
Michael Gapczynski 2012-12-15 17:16:26 -05:00
parent cf3665057c
commit 8951769cae
1 changed files with 5 additions and 4 deletions

View File

@ -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'];
}
}
}