Attempt to fix Undefined array key 1
This commit is contained in:
parent
0007ffbb74
commit
0367ee913c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue