diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-10 15:40:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 15:40:10 +0100 |
commit | 4823ac969a1fc917e1efab4d2b84028d932cb56b (patch) | |
tree | 9858a19dfa7acfd08b90f53ad6b7bb87856954e8 /lib | |
parent | 9978cee1e3f3989f89864742670a74b52873a75b (diff) | |
parent | 4596423b14015ad6d102195f6b0445f89dd82aa2 (diff) | |
download | nextcloud-server-4823ac969a1fc917e1efab4d2b84028d932cb56b.tar.gz nextcloud-server-4823ac969a1fc917e1efab4d2b84028d932cb56b.zip |
Merge pull request #7763 from nextcloud/pos_fix_7751
Do not instantiate node when not needed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 844b36b2994..b9ab7a46873 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -452,9 +452,9 @@ class DefaultShareProvider implements IShareProvider { 'uid_owner' => $qb->createNamedParameter($share->getShareOwner()), 'uid_initiator' => $qb->createNamedParameter($share->getSharedBy()), 'parent' => $qb->createNamedParameter($share->getId()), - 'item_type' => $qb->createNamedParameter($share->getNode() instanceof File ? 'file' : 'folder'), - 'item_source' => $qb->createNamedParameter($share->getNode()->getId()), - 'file_source' => $qb->createNamedParameter($share->getNode()->getId()), + 'item_type' => $qb->createNamedParameter($share->getNodeType()), + 'item_source' => $qb->createNamedParameter($share->getNodeId()), + 'file_source' => $qb->createNamedParameter($share->getNodeId()), 'file_target' => $qb->createNamedParameter($share->getTarget()), 'permissions' => $qb->createNamedParameter($share->getPermissions()), 'stime' => $qb->createNamedParameter($share->getShareTime()->getTimestamp()), |