summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/personal.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 41499657ac7..64e08be89eb 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -20,6 +20,7 @@ $rootInfo=OC_FileCache::get('');
$used=$rootInfo['size'];
$free=OC_Filesystem::free_space();
$total=$free+$used;
+if($total==0) $total=1; // prevent division by zero
$relative=round(($used/$total)*10000)/100;
$email=OC_Preferences::getValue(OC_User::getUser(), 'settings','email','');