From c6272ed4f71b1e6b8038960f6a203f4e315a2e6b Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 18 Jul 2012 17:04:21 -0400 Subject: Fixed undef to trick_taint error with FlagTypeComment when creating a new flag --- extensions/FlagTypeComment/Extension.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/FlagTypeComment/Extension.pm b/extensions/FlagTypeComment/Extension.pm index 3e08db54f..2e3bba2ba 100644 --- a/extensions/FlagTypeComment/Extension.pm +++ b/extensions/FlagTypeComment/Extension.pm @@ -90,7 +90,7 @@ sub _set_ftc_states { ($target_type, $id) = ($type->target_type, $type->id); } else { ($target_type, $id) = ($type->{target_type}, $type->{id}); - trick_taint($id); + trick_taint($id) if $id; } if ($target_type eq 'bug') { return unless FLAGTYPE_COMMENT_BUG_FLAGS; -- cgit v1.2.3-24-g4f1b