Merge pull request #19533 from owncloud/free-space-inf

Work around INF=0 on some shared hosts
This commit is contained in:
Robin Appelman 2015-10-02 15:04:28 +02:00
commit af01c04360
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}