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

View File

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