Skip to content

Commit

Permalink
GH-139 Fix coordinates validator by preventing null values from passing
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed May 29, 2022
1 parent 3ac44b0 commit bded1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/flights/utils/checks/isValidCoordinate.checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function isValidCoordinate($params) {
];

foreach ($inRangeCoordinates as $paramName => $paramValue) {
if (!isset($originalCoordinate[$paramName])) {
if (!array_key_exists($paramName, $originalCoordinate)) {
continue;
}
if ($originalCoordinate[$paramName] == $paramValue) {
Expand Down

0 comments on commit bded1a0

Please sign in to comment.