FHEMWEB: avoid error-message when webCmd argument is space

git-svn-id: https://svn.fhem.de/fhem/trunk@4874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-02-10 18:10:14 +00:00
parent 530d869c0b
commit 9b29ac4bdc

View File

@@ -1220,8 +1220,8 @@ FW_showRoom()
if(!$FW_ss && $cmdlist) {
foreach my $cmd (split(":", $cmdlist)) {
my $htmlTxt;
my @c = split(' ', $cmd);
if($allSets && $allSets =~ m/$c[0]:([^ ]*)/) {
my @c = split(' ', $cmd); # @c==0 if $cmd==" ";
if(int(@c) && $allSets && $allSets =~ m/$c[0]:([^ ]*)/) {
my $values = $1;
foreach my $fn (sort keys %{$data{webCmdFn}}) {
no strict "refs";