Add check is / defined or not

parent fa750493
...@@ -831,8 +831,8 @@ sub create { ...@@ -831,8 +831,8 @@ sub create {
# fix work and productive time writing on bug creating # fix work and productive time writing on bug creating
$creation_comment->{'work_time'} = $work_time; $creation_comment->{'work_time'} = defined $work_time ? $work_time : 0;
$creation_comment->{'productive_time'} = $productive_time; $creation_comment->{'productive_time'} = defined $productive_time ? $productive_time : 0;
# Insert the comment. We always insert a comment on bug creation, # Insert the comment. We always insert a comment on bug creation,
# but sometimes it's blank. # but sometimes it's blank.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment