mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-12 10:46:37 +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;
|
||||
|
||||
if (defined($data->{value})) {
|
||||
if ($confdesc->{$key}->{type} eq 'boolean') {
|
||||
if ($confdesc->{$key} && $confdesc->{$key}->{type} eq 'boolean') {
|
||||
my $txt = $data->{value} ? 'yes' : 'no';
|
||||
$text .= uc($key) . "=\"$txt\"\n";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user