From eb84f5eb878159ba25bdfb70998a663e24216736 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 4 Oct 2004 11:23:43 +0000 Subject: (build_notebook) do not crash if BOOTPROTO is empty, use 'none' by default (#11899) --- perl-install/standalone/drakconnect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index 7865916b4..19055cd58 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -357,7 +357,7 @@ sub build_notebook { my $proto = $gui->{intf}{BOOTPROTO}; $proto->{protocols} = { none => N("none"), static => N("static"), dhcp => N("DHCP") }; $proto->set_popdown_strings(values %{$proto->{protocols}}); - $proto->set_text($proto->{protocols}{$intf->{BOOTPROTO}}); + $proto->set_text($proto->{protocols}{$intf->{BOOTPROTO} || 'none'}); foreach ($gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{netc}{GATEWAY}) { $_->set_sensitive($intf->{BOOTPROTO} eq 'static' ? 1 : 0) }; -- cgit v1.2.1