mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-15 11:50:23 +01:00
Fixed tests
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user