From: Frédéric Buclin Date: Fri, 5 Aug 2011 00:49:01 +0000 (+0200) Subject: Bug 676430: When editing a bug, a user not in the timetracking group generates "Use... X-Git-Tag: bugzilla-4.1.3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0affd238cd65bc8c40e316ab20663f3110cee9;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1f0034ff7b..40bf3af2e0 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; }