diff options
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php index 4f92985c797..9297f5d91cc 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -24,6 +24,7 @@ if (!isset($sharedInfo['size'])) { $sharedSize = $sharedInfo['size']; } $used=$rootInfo['size']-$sharedSize; +if($used<0) $used=0; $free=OC_Filesystem::free_space(); $total=$free+$used; if($total==0) $total=1; // prevent division by zero |