mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 09:44:45 +02:00
Empty array if user->oauth is null (#754)
This commit is contained in:
parent
bd51191da6
commit
141baeb035
@ -141,7 +141,7 @@ class EditProfile extends \Filament\Pages\Auth\EditProfile
|
||||
continue;
|
||||
}
|
||||
|
||||
$unlink = array_key_exists($name, $this->getUser()->oauth);
|
||||
$unlink = array_key_exists($name, $this->getUser()->oauth ?? []);
|
||||
|
||||
$providers[] = Action::make("oauth_$name")
|
||||
->label(($unlink ? 'Unlink ' : 'Link ') . Str::title($name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user