mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
no need to empty array in a special way
This commit is contained in:
parent
e0a5f3b570
commit
2a10e78c58
1 changed files with 1 additions and 3 deletions
|
|
@ -63,9 +63,7 @@ class Shared_Permissions extends Permissions {
|
|||
* @return int[]
|
||||
*/
|
||||
public function getMultiple($fileIds, $user) {
|
||||
if (count($fileIds) === 0) {
|
||||
return array();
|
||||
}
|
||||
$filePermissions = array();
|
||||
foreach ($fileIds as $fileId) {
|
||||
$filePermissions[$fileId] = $this->get($fileId, $user);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue