Disable buerklin provider if settings fields are empty

This commit is contained in:
Jan Böhmer 2026-01-04 20:27:57 +01:00
parent 1fb2c050db
commit b08cd16d7a

View file

@ -189,10 +189,10 @@ class BuerklinProvider implements BatchInfoProviderInterface
public function isActive(): bool
{
// The client credentials and user credentials must be set
return $this->settings->clientId !== ''
&& $this->settings->secret !== ''
&& $this->settings->username !== ''
&& $this->settings->password !== '';
return $this->settings->clientId !== null && $this->settings->clientId !== ''
&& $this->settings->secret !== null && $this->settings->secret !== ''
&& $this->settings->username !== null && $this->settings->username !== ''
&& $this->settings->password !== null && $this->settings->password !== '';
}
/**