diff options
-rw-r--r-- | lib/MDV/Draklive/Config.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Config.pm b/lib/MDV/Draklive/Config.pm index b23b966..7b83f0f 100644 --- a/lib/MDV/Draklive/Config.pm +++ b/lib/MDV/Draklive/Config.pm @@ -77,7 +77,11 @@ sub complete_config { $live->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`); $live->{media}{title} ||= "live"; - foreach ($live->{media}, if_($live->{replicator}, $live->{replicator}{media}), if_($live->{oem_rescue}, $live->{oem_rescue}{media})) { + foreach ( + $live->{media}, + ($live->{replicator} ? $live->{replicator}{media} : ()), + ($live->{oem_rescue} ? $live->{oem_rescue}{media} : ()), + ) { bless $_, 'MDV::Draklive::Media'; } |