Skip to content

Commit

Permalink
fix: array access in user factories
Browse files Browse the repository at this point in the history
  • Loading branch information
maikschneider committed May 5, 2023
1 parent 3195ab1 commit a7fb3f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/UserFactory/BackendUserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function findUserByUsernameOrEmail(): ?array

public function registerRemoteUser(): ?array
{
$doCreateNewUser = isset($this->extendedProviderConfiguration) && $this->extendedProviderConfiguration['createBackendUser'];
$doCreateNewUser = isset($this->extendedProviderConfiguration[$this->providerId]['createBackendUser']) && $this->extendedProviderConfiguration[$this->providerId]['createBackendUser'];

// find or optionally create
$userRecord = $this->findUserByUsernameOrEmail();
Expand Down
2 changes: 1 addition & 1 deletion Classes/UserFactory/FrontendUserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function findUserByUsernameOrEmail(): ?array

public function registerRemoteUser(int $targetPid): ?array
{
$doCreateNewUser = isset($this->extendedProviderConfiguration) && $this->extendedProviderConfiguration['createFrontendUser'];
$doCreateNewUser = isset($this->extendedProviderConfiguration[$this->providerId]['createFrontendUser']) && $this->extendedProviderConfiguration[$this->providerId]['createFrontendUser'];

// find or optionally create
$userRecord = $this->findUserByUsernameOrEmail();
Expand Down

0 comments on commit a7fb3f7

Please sign in to comment.