Attempt to fix Undefined array key 1

This commit is contained in:
Jay Trees 2022-03-01 11:15:24 +01:00
parent 0007ffbb74
commit 0367ee913c

View file

@ -42,8 +42,8 @@ class URL
foreach ($parameters_pairs as $index => $pair) { foreach ($parameters_pairs as $index => $pair) {
$parts = explode('=', $pair); $parts = explode('=', $pair);
$key = $parts[0]; $key = reset($parts);
$value = $parts[1]; $value = end($parts);
$parameters[$key] = $value; $parameters[$key] = $value;
} }