aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_search.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php
index da1ff73ea..a65c26ace 100644
--- a/include/functions_search.inc.php
+++ b/include/functions_search.inc.php
@@ -336,11 +336,11 @@ class QNumericRangeScope extends QSearchScope
foreach ($range as $i =>&$val)
{
- if (preg_match('#^([0-9.]+)/([0-9.]+)$#i', $val, $matches))
+ if (preg_match('#^(-?[0-9.]+)/([0-9.]+)$#i', $val, $matches))
{
$val = floatval($matches[1]/$matches[2]);
}
- elseif (preg_match('/^([0-9.]+)([km])?/i', $val, $matches))
+ elseif (preg_match('/^(-?[0-9.]+)([km])?/i', $val, $matches))
{
$val = floatval($matches[1]);
if (isset($matches[2]))