]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Was getting an "uninitialized value" error in Bugzilla::Config when running checksetu...
authormkanat%bugzilla.org <>
Fri, 9 Oct 2009 06:15:31 +0000 (06:15 +0000)
committermkanat%bugzilla.org <>
Fri, 9 Oct 2009 06:15:31 +0000 (06:15 +0000)
Bugzilla/Config.pm

index f56ffd78aaa0125270bc4d41544ed9e6c4cb77e3..cab18b5a159042304d15153d505fe441d25e8f9e 100644 (file)
@@ -195,7 +195,9 @@ sub update_params {
     # Convert the old "ssl" parameter to the new "ssl_redirect" parameter.
     # Both "authenticated sessions" and "always" turn on "ssl_redirect"
     # when upgrading.
-    $param->{'ssl_redirect'} = 1 if $param->{'ssl'} ne 'never';
+    if (exists $param->{'ssl'} and $param->{'ssl'} ne 'never') {
+        $param->{'ssl_redirect'} = 1;
+    }
 
     # --- DEFAULTS FOR NEW PARAMS ---