diff --git a/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm b/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm index ca3657a56b1..06ce3e8a240 100644 --- a/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm +++ b/mozilla/webtools/testopia/Bugzilla/Testopia/TestCase.pm @@ -823,7 +823,7 @@ sub attach_bug { my $self = shift; my ($bugids, $caserun_id) = @_; my $dbh = Bugzilla->dbh; - trick_taint($caserun_id); + trick_taint($caserun_id) if $caserun_id; $bugids = $self->_check_bugs($bugids, "ATTACH");