diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-02-24 17:25:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-24 17:25:21 +0100 |
commit | dd6d2893a66f68157c2fab4deb06f336642c6a02 (patch) | |
tree | d789ca795c56bef57f28d3719e22dbd435098ddc /apps/files_sharing/lib | |
parent | a113ca68eba62e56998e971a48633e4c1b525633 (diff) | |
parent | 55a37c1db9786382acc2475a0140c1084f58f478 (diff) | |
download | nextcloud-server-dd6d2893a66f68157c2fab4deb06f336642c6a02.tar.gz nextcloud-server-dd6d2893a66f68157c2fab4deb06f336642c6a02.zip |
Merge pull request #3588 from GreenArchon/issue_#3461
Typecast shared mount's storage_id to int as documented + some refactor to avoid similar bugs
Diffstat (limited to 'apps/files_sharing/lib')
-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; } |