Skip to content
Snippets Groups Projects
Commit 8951769c authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Check sub storage isn't null or false

parent cf366505
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment