From 304a86b554a860542ff51947f9a1b1d0763c6477 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 27 Jun 2023 15:54:24 +0100 Subject: [PATCH] types --- core/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.php b/core/util.php index f761a599..4382213d 100644 --- a/core/util.php +++ b/core/util.php @@ -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;