types
This commit is contained in:
parent
314528801b
commit
304a86b554
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ function load_balance_url(string $tmpl, string $hash, int $n=0): string
|
|||
$opt_weight = 0;
|
||||
if ($parts_count === 2) {
|
||||
$opt_val = $parts[0];
|
||||
$opt_weight = $parts[1];
|
||||
$opt_weight = (int)$parts[1];
|
||||
} elseif ($parts_count === 1) {
|
||||
$opt_val = $parts[0];
|
||||
$opt_weight = 1;
|
||||
|
|
Reference in a new issue