From d5fc011c9059a0362903abc85fa2af43a7dd89f4 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 25 Sep 2014 11:29:57 +0200 Subject: some small fixes --- lib/private/share/share.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/private/share') diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 6b903c003d3..d681f35b03a 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -340,7 +340,7 @@ class Share extends \OC\Share\Constants { * @param mixed $parameters * @param boolean $includeCollections * @param string $shareWith (optional) define against which user should be checked, default: current user - * @return mixed Return depends on format + * @return array */ public static function getItemSharedWithBySource($itemType, $itemSource, $format = self::FORMAT_NONE, $parameters = null, $includeCollections = false, $shareWith = null) { @@ -1576,11 +1576,6 @@ class Share extends \OC\Share\Constants { $queriesToExecute = array(); - $fileShare = false; - if ($itemType === 'file' || $itemType === 'folder') { - $fileShare = true; - } - $result = self::checkReshare($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, $itemSourceName, $expirationDate); if(!empty($result)) { $parent = $result['parent']; -- cgit v1.2.3