mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
Altered variable name in foreach to be less ambiguous.
This commit is contained in:
@@ -312,9 +312,9 @@ class InputHandler
|
||||
|
||||
$output = (\count($filter) > 0) ? array_intersect_key($output, array_flip($filter)) : $output;
|
||||
|
||||
foreach ($filter as $value) {
|
||||
if (!array_key_exists($value, $output)) {
|
||||
$output[$value] = null;
|
||||
foreach ($filter as $filterKey) {
|
||||
if (!array_key_exists($filterKey, $output)) {
|
||||
$output[$filterKey] = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user