diff --git a/settings/personal.php b/settings/personal.php
index 8ad3af08734e401b259f7dc2baba44d0439fe1f5..82626526d5756b7ff46e85f6dfda8f4bdfe7c1e1 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -18,7 +18,7 @@ OC_App::setActiveNavigationEntry( 'personal' );
 // calculate the disc space
 $rootInfo=OC_FileCache::get('');
 $sharedInfo=OC_FileCache::get('/Shared');
-if (!isset($sharedInfo)) {
+if (!isset($sharedInfo['size'])) {
 	$sharedSize = 0;
 } else {
 	$sharedSize = $sharedInfo['size'];