We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e81b9 commit 5a22bd0Copy full SHA for 5a22bd0
1 file changed
lib/Controller/IdentifyAccountController.php
@@ -230,10 +230,10 @@ private function excludeNotAllowed(array $list): array {
230
231
private function replaceShareTypeByMethod(array $list): array {
232
foreach ($list as $key => $item) {
233
- if (!empty($item['method'])) {
+ if (isset($item['method']) && !empty($item['method'])) {
234
continue;
235
}
236
- match ($item['shareType']) {
+ $list[$key]['method'] = match ($item['shareType']) {
237
IShare::TYPE_EMAIL => $item['method'] = 'email',
238
IShare::TYPE_USER => $item['method'] = 'account',
239
default => $item['method'] = '',
0 commit comments