- Timestamp:
- Jul 8, 2014, 12:38:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_search.inc.php
r28992 r28996 337 337 foreach ($range as $i =>&$val) 338 338 { 339 if (preg_match('#^( [0-9.]+)/([0-9.]+)$#i', $val, $matches))339 if (preg_match('#^(-?[0-9.]+)/([0-9.]+)$#i', $val, $matches)) 340 340 { 341 341 $val = floatval($matches[1]/$matches[2]); 342 342 } 343 elseif (preg_match('/^( [0-9.]+)([km])?/i', $val, $matches))343 elseif (preg_match('/^(-?[0-9.]+)([km])?/i', $val, $matches)) 344 344 { 345 345 $val = floatval($matches[1]);
Note: See TracChangeset
for help on using the changeset viewer.