summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-09-23 16:47:46 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-11-03 12:33:34 +0100
commitebf169479540506b36c9fde79a08f4a60d3c5e1d (patch)
tree62443790974dfd3d75f5bd56a3ee5fa5c8bf8b4c /lib/public
parent1d1f5b288e404c8c69aa4550b0f4fa9508b00204 (diff)
downloadnextcloud-server-ebf169479540506b36c9fde79a08f4a60d3c5e1d.tar.gz
nextcloud-server-ebf169479540506b36c9fde79a08f4a60d3c5e1d.zip
Use unshareItem() in unshareAll().
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 2d56ea7220c..2a127976469 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -656,7 +656,7 @@ class Share {
);
\OC_Hook::emit('OCP\Share', 'pre_unshareAll', $hookParams);
foreach ($shares as $share) {
- self::delete($share['id']);
+ self::unshareItem($share);
}
\OC_Hook::emit('OCP\Share', 'post_unshareAll', $hookParams);
return true;