From 33fc88adc64c0c74c0b0d743031f7b96f1fb4715 Mon Sep 17 00:00:00 2001 From: Byrne Date: Sun, 5 Dec 2010 00:14:55 -0800 Subject: [PATCH] [#629] Eliminated warning akin to unitialized value used in eq. --- lib/MT/App/Wizard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MT/App/Wizard.pm b/lib/MT/App/Wizard.pm index c20aa357f..0fb2b1675 100644 --- a/lib/MT/App/Wizard.pm +++ b/lib/MT/App/Wizard.pm @@ -52,7 +52,7 @@ sub init_request { my $default_lang = $q->param('default_language') || browser_language(); $app->set_language($default_lang); - if ( $app->is_mtconfig_exists || $q->param('step') eq 'upgrade_from_mt' ) + if ( $app->is_mtconfig_exists || ($q->param('step') && $q->param('step') eq 'upgrade_from_mt' )) { $app->mode('upgrade_from_mt'); return;