diff --git a/settings/personal.php b/settings/personal.php
index d82db0d0e7e1adb40f8833ca870a14ac91fa0a52..8ad3af08734e401b259f7dc2baba44d0439fe1f5 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