mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-12 17:40:13 +00:00
fix bug 37: avoid warning about uninitialized value
This commit is contained in:
parent
165a9668c1
commit
e10faadcf7
@ -841,7 +841,7 @@ sub create_config_line {
|
|||||||
my $text;
|
my $text;
|
||||||
|
|
||||||
if (defined($data->{value})) {
|
if (defined($data->{value})) {
|
||||||
if ($confdesc->{$key}->{type} eq 'boolean') {
|
if ($confdesc->{$key} && $confdesc->{$key}->{type} eq 'boolean') {
|
||||||
my $txt = $data->{value} ? 'yes' : 'no';
|
my $txt = $data->{value} ? 'yes' : 'no';
|
||||||
$text .= uc($key) . "=\"$txt\"\n";
|
$text .= uc($key) . "=\"$txt\"\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user