Work around INF=0 on some shared hosts

This commit is contained in:
Robin Appelman 2015-10-02 14:16:13 +02:00
parent 594a3e4e22
commit a1d0d23b6a
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ class OC_Helper {
$freeSpace = max($freeSpace, 0); $freeSpace = max($freeSpace, 0);
return $freeSpace; return $freeSpace;
} else { } else {
return INF; return (INF > 0)? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
} }
} }