From c7a51a05b2b5c409fbaa47a3858a4252d0798353 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 14 Jul 2004 09:44:39 +0000 Subject: to_bool is what I was looking for, thanks Pixel --- perl-install/install_steps_interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 032d62399..c558a8842 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -637,7 +637,7 @@ sub chooseCD { } if (install_any::method_is_from_ISO_images($o->{method})) { - $mediumsDescr{$_} = defined(install_any::find_ISO_image_labelled($_)) || 0 foreach @mediumsDescr; + $mediumsDescr{$_} = to_bool(install_any::find_ISO_image_labelled($_)) foreach @mediumsDescr; } elsif ($method eq "cdrom") { #- if no other medium available or a poor beginner, we are choosing for him! #- note first CD is always selected and should not be unselected! -- cgit v1.2.1