hopleus 2 weeks ago committed by GitHub
commit fcd92da768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -560,6 +560,13 @@ class OC_Helper {
$total = $free + $used;
} else {
$total = $free; //either unknown or unlimited
// So that the front does not react to a negative free space value and does not show appropriate warnings
if ($free === \OCP\Files\FileInfo::SPACE_UNKNOWN
|| $free === \OCP\Files\FileInfo::SPACE_UNLIMITED
|| $free === \OCP\Files\FileInfo::SPACE_NOT_COMPUTED) {
$free = PHP_INT_MAX;
}
}
if ($total > 0) {
if ($quota > 0 && $total > $quota) {

Loading…
Cancel
Save