From 3a0affd238cd65bc8c40e316ab20663f3110cee9 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 5 Aug 2011 02:49:01 +0200 Subject: 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 --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') 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; } -- cgit v1.2.3-24-g4f1b