Work around INF=0 on some shared hosts
This commit is contained in:
parent
594a3e4e22
commit
a1d0d23b6a
|
@ -742,7 +742,7 @@ class OC_Helper {
|
|||
$freeSpace = max($freeSpace, 0);
|
||||
return $freeSpace;
|
||||
} else {
|
||||
return INF;
|
||||
return (INF > 0)? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue