mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-20 10:21:32 +00:00
Fixed tests
This commit is contained in:
parent
0fbbcd26fb
commit
a9e770f250
2 changed files with 5 additions and 7 deletions
|
|
@ -87,7 +87,7 @@ class CanopySettings
|
|||
*/
|
||||
public function getRealDomain(): string
|
||||
{
|
||||
$domain = array_search($this->domain, self::ALLOWED_DOMAINS);
|
||||
$domain = array_search($this->domain, self::ALLOWED_DOMAINS, true);
|
||||
if ($domain === false) {
|
||||
throw new \InvalidArgumentException("Invalid domain selected");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue