summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 84c6214b7..8795046c0 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -651,8 +651,9 @@ sub g_auto_install {
$o->{printer}{configured} = {};
foreach my $queue (keys %{$::o->{printer}{configured}}) {
my $val = $::o->{printer}{configured}{$queue};
- $val->{$_} and $o->{printer}{configured}{$queue}{$_} = $val->{$_} foreach qw(OPTIONS);
- add2hash($o->{printer}{configured}{$queue}{queuedata} = {}, $val->{queuedata});
+ exists $val->{$_} and $o->{printer}{configured}{$queue}{$_} = $val->{$_} foreach qw(OPTIONS);
+ exists $val->{queuedata}{$_} and $o->{printer}{configured}{$queue}{queuedata}{$_} = $val->{queuedata}{$_}
+ foreach keys %{$val->{queuedata} || {}};
}
}