X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FJSONSchema.pm;h=32d461cbf6467e6ad7adbdd86b650df79e7f7228;hp=47aa2780ca9e356f382babfdf1ad10975c7261f0;hb=43479146338948434f0b08ef854c96281ee0f268;hpb=7fe1f565b407d8a3032a7ed0279d4c7b31aae672 diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 47aa278..32d461c 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -1139,7 +1139,7 @@ sub get_options { if ($pd->{format} =~ m/-list/) { # allow --vmid 100 --vmid 101 and --vmid 100,101 # allow --dow mon --dow fri and --dow mon,fri - $opts->{$p} = join(",", @{$opts->{$p}}); + $opts->{$p} = join(",", @{$opts->{$p}}) if ref($opts->{$p}) eq 'ARRAY'; } elsif ($pd->{format} =~ m/-alist/) { # we encode array as \0 separated strings # Note: CGI.pm also use this encoding