no need to empty array in a special way

This commit is contained in:
Thomas Müller 2014-06-02 18:53:01 +02:00 committed by Bjoern Schiessle
parent e0a5f3b570
commit 2a10e78c58

View file

@ -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);
}