summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-06 03:54:42 +0200
committerlpsolit%gmail.com <>2005-08-06 03:54:42 +0200
commit9e496cd986d83dd64be529a80646ede6719bea78 (patch)
treef349b163dfd27d789d4e1c328cc247bdc0d5a508 /Bugzilla
parent72bdf0f920380807b1da4bb5be3523e65f618182 (diff)
downloadbugzilla-9e496cd986d83dd64be529a80646ede6719bea78.tar.gz
bugzilla-9e496cd986d83dd64be529a80646ede6719bea78.tar.xz
Bug 301261: uninitialized value in Search.pm when querying by date - Patch by Albert Ting <altlst@sonic.net> r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 7e545cf46..31dbcd2ab 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1423,7 +1423,7 @@ sub SqlifyDate {
if ($str =~ /^(-|\+)?(\d+)([hHdDwWmMyY])$/) { # relative date
my ($sign, $amount, $unit, $date) = ($1, $2, lc $3, time);
my ($sec, $min, $hour, $mday, $month, $year, $wday) = localtime($date);
- if ($sign eq '+') { $amount = -$amount; }
+ if ($sign && $sign eq '+') { $amount = -$amount; }
if ($unit eq 'w') { # convert weeks to days
$amount = 7*$amount + $wday;
$unit = 'd';