[Pkg-owncloud-commits] [owncloud] 50/67: Fix unshareAll()
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:42 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit 7feb0f737b17741f5dcab2e25bcb3107f39397da
Author: Michael Gapczynski <mtgap at owncloud.com>
Date: Tue Oct 16 16:26:55 2012 -0400
Fix unshareAll()
Conflicts:
lib/public/share.php
---
lib/public/share.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/public/share.php b/lib/public/share.php
index ccc1842..107b546 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -333,8 +333,10 @@ class Share {
* @return Returns true on success or false on failure
*/
public static function unshareAll($itemType, $itemSource) {
- if ($item = self::getItemShared($itemType, $itemSource)) {
- self::delete($item['id']);
+ if ($shares = self::getItemShared($itemType, $itemSource)) {
+ foreach ($shares as $share) {
+ self::delete($share['id']);
+ }
return true;
}
return false;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list