summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-07-18 23:04:21 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-07-18 23:04:21 +0200
commitc6272ed4f71b1e6b8038960f6a203f4e315a2e6b (patch)
treed93e82267671fd62df38279005c9f736c985c6db
parentf4648afc47bacab0e0d64026993b42b67ebf37b9 (diff)
downloadbugzilla-c6272ed4f71b1e6b8038960f6a203f4e315a2e6b.tar.gz
bugzilla-c6272ed4f71b1e6b8038960f6a203f4e315a2e6b.tar.xz
Fixed undef to trick_taint error with FlagTypeComment when creating a new flag
-rw-r--r--extensions/FlagTypeComment/Extension.pm2
1 files changed, 1 insertions, 1 deletions
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;