Update Configuration.mustache (#17529)

BUG: in getHostString : typo in variable usage : $hostsSettings instead of $hostSettings
This commit is contained in:
Antoine MARQUES 2024-01-05 02:48:14 +01:00 committed by GitHub
parent 063865973d
commit 3d91fa8bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,11 +510,11 @@ class Configuration
} }
// check array index out of bound // check array index out of bound
if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) { if ($hostIndex < 0 || $hostIndex >= count($hostSettings)) {
throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings)); throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostSettings));
} }
$host = $hostsSettings[$hostIndex]; $host = $hostSettings[$hostIndex];
$url = $host["url"]; $url = $host["url"];
// go through variable and assign a value // go through variable and assign a value