diff options
author | Frédéric Fortier <frederic.fortier@oronospolytechnique.com> | 2017-02-20 22:07:37 -0500 |
---|---|---|
committer | Apache <frederic.fortier@oronospolytechnique.com> | 2017-02-20 22:23:27 -0500 |
commit | cc511ac7b8c6aab3f6bea335d35b019554157b22 (patch) | |
tree | 78a26ed62d866514fa87be8a89039e8dd0752ca0 /apps/files_sharing/lib/SharedMount.php | |
parent | d754227b4c5b475b0c8f3fea5f0c010c77cf7218 (diff) | |
download | nextcloud-server-cc511ac7b8c6aab3f6bea335d35b019554157b22.tar.gz nextcloud-server-cc511ac7b8c6aab3f6bea335d35b019554157b22.zip |
Typecast filecache 'storage' as int to return it as documented, fixes #3461
Signed-off-by: Frédéric Fortier <frederic.fortier@oronospolytechnique.com>
Diffstat (limited to 'apps/files_sharing/lib/SharedMount.php')
-rw-r--r-- | apps/files_sharing/lib/SharedMount.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php index 2ef5e15b778..d5ae303390f 100644 --- a/apps/files_sharing/lib/SharedMount.php +++ b/apps/files_sharing/lib/SharedMount.php @@ -253,7 +253,7 @@ class SharedMount extends MountPoint implements MoveableMount { $row = $result->fetch(); $result->closeCursor(); if ($row) { - return $row['storage']; + return (int)$row['storage']; } return -1; } |