summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php
index d82db0d0e7e..8ad3af08734 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -18,7 +18,12 @@ OC_App::setActiveNavigationEntry( 'personal' );
// calculate the disc space
$rootInfo=OC_FileCache::get('');
$sharedInfo=OC_FileCache::get('/Shared');
-$used=$rootInfo['size']-$sharedInfo['size'];
+if (!isset($sharedInfo)) {
+ $sharedSize = 0;
+} else {
+ $sharedSize = $sharedInfo['size'];
+}
+$used=$rootInfo['size']-$sharedSize;
$free=OC_Filesystem::free_space();
$total=$free+$used;
if($total==0) $total=1; // prevent division by zero