]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if size isset, try to fix used space calculation again, fixs bug oc-1331
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 27 Jul 2012 00:45:32 +0000 (20:45 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Mon, 30 Jul 2012 14:07:19 +0000 (10:07 -0400)
Conflicts:
settings/personal.php

settings/personal.php

index 04abd074eb72b51db9217be384ffd1f15e12ac2d..eb45c1b3aa859a86e067e3d6009bc295817a6ea3 100644 (file)
@@ -18,7 +18,7 @@ OC_App::setActiveNavigationEntry( 'personal' );
 // calculate the disc space\r
 $rootInfo=OC_FileCache::get('');\r
 $sharedInfo=OC_FileCache::get('/Shared');\r
-if (!isset($sharedInfo)) {\r
+if (!isset($sharedInfo['size'])) {\r
        $sharedSize = 0;\r
 } else {\r
        $sharedSize = $sharedInfo['size'];\r
@@ -67,4 +67,4 @@ foreach($forms as $form){
 }\r
 $tmpl->printPage();\r
 \r
-?>\r
+?>
\ No newline at end of file