Skip to content

Commit 5a22bd0

Browse files
committed
fix: previous change was wrong
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 62e81b9 commit 5a22bd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Controller/IdentifyAccountController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ private function excludeNotAllowed(array $list): array {
230230

231231
private function replaceShareTypeByMethod(array $list): array {
232232
foreach ($list as $key => $item) {
233-
if (!empty($item['method'])) {
233+
if (isset($item['method']) && !empty($item['method'])) {
234234
continue;
235235
}
236-
match ($item['shareType']) {
236+
$list[$key]['method'] = match ($item['shareType']) {
237237
IShare::TYPE_EMAIL => $item['method'] = 'email',
238238
IShare::TYPE_USER => $item['method'] = 'account',
239239
default => $item['method'] = '',

0 commit comments

Comments
 (0)