2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

clean up code to avoid "Use of uninitialized value in concatenation.."

git-svn-id: https://svn.fhem.de/fhem/trunk@5207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
matscher 2014-03-12 19:05:33 +00:00
parent 2154665b59
commit c77a84627f

View File

@ -148,17 +148,20 @@ CUL_FHTTK_Set($@)
my $name = shift(@a); my $name = shift(@a);
# return here to supress set at cul_fhttk devices # suppress SET option
if(defined($attr{$name}) && defined($attr{$name}{"model"})) { if(defined($attr{$name}) && defined($attr{$name}{"model"})) {
if($attr{$name}{"model"} ne "dummy") { if($attr{$name}{"model"} ne "dummy") {
return $ret return $ret
} }
} }
else {
return $ret;
}
my $opt = shift @a; my $opt = shift @a;
my $value = join("", @a); my $value = join("", @a);
Log3 $name, 5, "$name $opt a ist $a[0] und $a[1] und value: $value"; Log3 $name, 5, "$name option: $opt and value: $value";
if(!defined($fhttfk_c2b{$opt})) { if(!defined($fhttfk_c2b{$opt})) {
my @cList = keys %fhttfk_c2b; my @cList = keys %fhttfk_c2b;