FHEMWEB: avoid error-message when webCmd argument is space

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-02-10 18:10:14 +00:00
parent d44a154e8c
commit 7d23f1058d

View File

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