2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fixed warnings for undef $cmd

git-svn-id: https://svn.fhem.de/fhem/trunk@6111 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-06-14 16:11:40 +00:00
parent 6732f47e33
commit af3dabe67f

View File

@ -443,7 +443,7 @@ readingsGroup_2html($)
} else {
my $cmd = lookup2($commands,$name,$d,$txt);
if( $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
my $set = $1;
my $values = $2;
@ -566,7 +566,7 @@ readingsGroup_2html($)
if( !$devStateIcon ) {
$cmd = lookup2($commands,$name,$n,$v) if( !$devStateIcon );
if( $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
my $set = $1;
my $values = $2;
@ -835,7 +835,7 @@ readingsGroup_Notify($$)
}
$cmd = lookup2($commands,$n,$reading,$value);
if( $cmd =~ m/^(\w.*):(\S.*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
next;
}