diff --git a/settings/personal.php b/settings/personal.php index 4f92985c7977956476c55e4629f4601966e70fe2..9297f5d91cc4f542709e794672c0a15523b544a8 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