diff options
author | Robin Appelman <robin@icewind.nl> | 2015-10-02 15:04:28 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2015-10-02 15:04:28 +0200 |
commit | af01c043601c31ba0f7b1f3f173d8bdc6f85295f (patch) | |
tree | 02931601b89952e9c6ad2dbb22272f7b16e9fa23 /lib | |
parent | 54e19d7ca3031c0f5975c698b95be4377fa9980f (diff) | |
parent | a1d0d23b6a6cc1258fe7410d9d1001d8a0b57218 (diff) | |
download | nextcloud-server-af01c043601c31ba0f7b1f3f173d8bdc6f85295f.tar.gz nextcloud-server-af01c043601c31ba0f7b1f3f173d8bdc6f85295f.zip |
Merge pull request #19533 from owncloud/free-space-inf
Work around INF=0 on some shared hosts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/helper.php | 2 |
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 } } |