mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 14:19:33 +00:00
Disable buerklin provider if settings fields are empty
This commit is contained in:
parent
1fb2c050db
commit
b08cd16d7a
1 changed files with 4 additions and 4 deletions
|
|
@ -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 !== '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue