From 6620c43ae99c3f79fb1450b5f11e9b3c57057429 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 12 Apr 2012 13:33:50 +0800 Subject: Bug 744490: fix "uninitialized value" warning in GuidedBugEntry --- extensions/GuidedBugEntry/Extension.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'extensions') diff --git a/extensions/GuidedBugEntry/Extension.pm b/extensions/GuidedBugEntry/Extension.pm index 4fbc20611..796c1ad3b 100644 --- a/extensions/GuidedBugEntry/Extension.pm +++ b/extensions/GuidedBugEntry/Extension.pm @@ -67,10 +67,12 @@ sub enter_bug_start { # we use the __default__ format to bypass the guided entry # it isn't understood upstream, so remove it once a product # has been selected. - $cgi->delete('format') - if $cgi->param('format') - && $cgi->param('format') eq "__default__" - && $cgi->param('product') ne ''; + if ( + ($cgi->param('format') && $cgi->param('format') eq "__default__") + && ($cgi->param('product') && $cgi->param('product') ne '') + ) { + $cgi->delete('format') + } } sub _init_vars { -- cgit v1.2.3-24-g4f1b