]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/OpenVZ.pm
fix bug 37: avoid warning about uninitialized value
[pve-manager.git] / PVE / OpenVZ.pm
index dbedb7b0a8bdbe5c78ec3c9e50523d1057f8ec3e..f4efca9af0faeffee8844e2f2d9ec277caac7804 100644 (file)
@@ -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 {