summaryrefslogtreecommitdiffstats
path: root/lib/private/share/share.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-09-25 11:29:57 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-09-25 11:29:57 +0200
commitd5fc011c9059a0362903abc85fa2af43a7dd89f4 (patch)
tree37b72a554da850cc9e8bf6ff5cecfe3b2a978411 /lib/private/share/share.php
parent5c7fe91041443dacb50f278c60ec5a6007216d61 (diff)
downloadnextcloud-server-d5fc011c9059a0362903abc85fa2af43a7dd89f4.tar.gz
nextcloud-server-d5fc011c9059a0362903abc85fa2af43a7dd89f4.zip
some small fixes
Diffstat (limited to 'lib/private/share/share.php')
-rw-r--r--lib/private/share/share.php7
1 files changed, 1 insertions, 6 deletions
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'];