summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-11 10:51:58 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-11 11:21:06 +0100
commitee080a9bc319aa4ef1cfe264068a4ae932bf7747 (patch)
treefda54188bfc6369b6b4485e7769f0ee1f6066ff7 /lib
parent5165998723925b414f688021aeaa8b90a844a918 (diff)
downloadnextcloud-server-ee080a9bc319aa4ef1cfe264068a4ae932bf7747.tar.gz
nextcloud-server-ee080a9bc319aa4ef1cfe264068a4ae932bf7747.zip
Do not getShare in deleteShare, it's already there when deleting
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index c13bf965676..120b9dd69dc 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -695,9 +695,9 @@ class Manager implements IManager {
* @throws \InvalidArgumentException
*/
public function deleteShare(\OCP\Share\IShare $share) {
- // Just to make sure we have all the info
+
try {
- $share = $this->getShareById($share->getFullId());
+ $share->getFullId();
} catch (\UnexpectedValueException $e) {
throw new \InvalidArgumentException('Share does not have a full id');
}