Commit 12efa1b3 authored by Donal McMullan's avatar Donal McMullan
Browse files

Fix for users whose quota is zero

parent f12688f3
......@@ -40,7 +40,11 @@ function smarty_function_loadquota($params, &$smarty) {
}
$smarty->assign('QUOTA_MESSAGE', $quota_message);
$smarty->assign('QUOTA_PERCENTAGE', round($quotaused / $quota * 100));
if($quota == 0) {
$smarty->assign('QUOTA_PERCENTAGE', 100);
} else {
$smarty->assign('QUOTA_PERCENTAGE', round($quotaused / $quota * 100));
}
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment