diff --git a/lib/private/helper.php b/lib/private/helper.php index ba1240a521..973960ca7a 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -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 } }