aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-02 14:16:13 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-02 14:16:13 +0200
commita1d0d23b6a6cc1258fe7410d9d1001d8a0b57218 (patch)
tree4616eb9cdfb71539e34cfad4f170a950d2088e0f /lib
parent594a3e4e22223389a306acad4e3921027decad96 (diff)
downloadnextcloud-server-a1d0d23b6a6cc1258fe7410d9d1001d8a0b57218.tar.gz
nextcloud-server-a1d0d23b6a6cc1258fe7410d9d1001d8a0b57218.zip
Work around INF=0 on some shared hosts
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php2
1 files changed, 1 insertions, 1 deletions
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
}
}