From a1d0d23b6a6cc1258fe7410d9d1001d8a0b57218 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 2 Oct 2015 14:16:13 +0200 Subject: Work around INF=0 on some shared hosts --- lib/private/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/helper.php b/lib/private/helper.php index ba1240a5218..973960ca7a5 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 } } -- cgit v1.2.3