From 3a0affd238cd65bc8c40e316ab20663f3110cee9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Fri, 5 Aug 2011 02:49:01 +0200 Subject: [PATCH] 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(-) 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; } -- 2.47.2