summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-05 02:49:01 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-05 02:49:01 +0200
commit3a0affd238cd65bc8c40e316ab20663f3110cee9 (patch)
treee528e66baa0741ca9842bbfd25868e33eb7776fe /Bugzilla
parent9d752a2c366cf2fbfb1a5aa0b928b9586362e92f (diff)
downloadbugzilla-3a0affd238cd65bc8c40e316ab20663f3110cee9.tar.gz
bugzilla-3a0affd238cd65bc8c40e316ab20663f3110cee9.tar.xz
Bug 676430: When editing a bug, a user not in the timetracking group generates "Use of uninitialized value in abs at Bugzilla/Bug.pm line 2682" in the web server error log
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 1f0034ff7..40bf3af2e 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2679,7 +2679,7 @@ sub add_comment {
# This makes it so we won't create new comments when there is nothing
# to add
- if ($comment eq '' && !($params->{type} || abs($params->{work_time}))) {
+ if ($comment eq '' && !($params->{type} || abs($params->{work_time} || 0))) {
return;
}