Skip to content

Commit e138167

Browse files
authored
in fn osm_get_items to allow negative geo coords
1 parent c9f4999 commit e138167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/functions_map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function osm_get_items($page)
142142

143143
foreach (array('min_lat', 'min_lng', 'max_lat', 'max_lng') as $get_key)
144144
{
145-
check_input_parameter($get_key, $_GET, false, '/^\d+(\.\d+)?$/');
145+
check_input_parameter($get_key, $_GET, false, '/^-?\d+(\.\d+)?$/');
146146
}
147147

148148
/* Delete all previous album */

0 commit comments

Comments
 (0)