diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-14 10:09:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 10:09:09 +0100 |
commit | c32a94b78d36aace3237d5b0c6c4069976ff06ad (patch) | |
tree | 58cb876586b61cf22d8a2cb7443316c6f1332103 /lib/private/Share | |
parent | d1fb939e863a6f476d3a0a49d6d9717ff0d713a0 (diff) | |
parent | 954da26e26a6f0011efa1432e9de4264e5f5e033 (diff) | |
download | nextcloud-server-c32a94b78d36aace3237d5b0c6c4069976ff06ad.tar.gz nextcloud-server-c32a94b78d36aace3237d5b0c6c4069976ff06ad.zip |
Merge pull request #8337 from nextcloud/use-non-alias-method
Use non aliased method instead
Diffstat (limited to 'lib/private/Share')
-rw-r--r-- | lib/private/Share/Share.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 9507eaf5c1f..1798969ca53 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -1038,7 +1038,7 @@ class Share extends Constants { } else { $itemTypes = $collectionTypes; } - $placeholders = join(',', array_fill(0, count($itemTypes), '?')); + $placeholders = implode(',', array_fill(0, count($itemTypes), '?')); $where = ' WHERE `item_type` IN ('.$placeholders.'))'; $queryArgs = $itemTypes; } else { @@ -1064,7 +1064,7 @@ class Share extends Constants { $groups = \OC::$server->getGroupManager()->getUserGroupIds($user); } if (!empty($groups)) { - $placeholders = join(',', array_fill(0, count($groups), '?')); + $placeholders = implode(',', array_fill(0, count($groups), '?')); $where .= ' OR (`share_type` = ? AND `share_with` IN ('.$placeholders.')) '; $queryArgs[] = self::SHARE_TYPE_GROUP; $queryArgs = array_merge($queryArgs, $groups); @@ -1129,7 +1129,7 @@ class Share extends Constants { } $queryArgs[] = $item; if ($includeCollections && $collectionTypes && !in_array('folder', $collectionTypes)) { - $placeholders = join(',', array_fill(0, count($collectionTypes), '?')); + $placeholders = implode(',', array_fill(0, count($collectionTypes), '?')); $where .= ' OR `item_type` IN ('.$placeholders.'))'; $queryArgs = array_merge($queryArgs, $collectionTypes); } |