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:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user