Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Fortier <frederic.fortier@oronospolytechnique.com>2017-02-21 06:07:37 +0300
committerFrédéric Fortier <frederic.fortier@oronospolytechnique.com>2017-02-24 20:09:40 +0300
commit0f3cf7fee880e61e104a1b27d386e9c3bffc92d1 (patch)
tree237e64224485eddfe7f62a15e3ba34902adbbd65 /apps/files_sharing
parentcd270b8e7e6a29f7e2a8acf7ae9c7d3fe6dce57d (diff)
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')
-rw-r--r--apps/files_sharing/lib/SharedMount.php2
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;
}