mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
minor bug
git-svn-id: https://svn.fhem.de/fhem/trunk@6575 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8d1a67591e
commit
11394a611c
@ -1734,10 +1734,20 @@ sub HMinfo_templateDef(@){#####################################################
|
||||
|
||||
return "$name already defined, delete it first" if($HMConfig::culHmTpl{$name});
|
||||
return "insufficient parameter" if(@regs < 1);
|
||||
$HMConfig::culHmTpl{$name}{p} = "";
|
||||
$HMConfig::culHmTpl{$name}{p} = join(" ",split(":",$param)) if($param ne "0");
|
||||
|
||||
my $paramNo;
|
||||
if($param ne "0"){
|
||||
my @p = split(":",$param);
|
||||
$HMConfig::culHmTpl{$name}{p} = join(" ",@p) ;
|
||||
$paramNo = scalar (@p);
|
||||
}
|
||||
else{
|
||||
$HMConfig::culHmTpl{$name}{p} = "";
|
||||
$paramNo = 0;
|
||||
}
|
||||
|
||||
$HMConfig::culHmTpl{$name}{t} = $desc;
|
||||
my $paramNo = scalar (split(":",$param));
|
||||
|
||||
foreach (@regs){
|
||||
my ($r,$v)=split":",$_;
|
||||
if (!defined $v){
|
||||
|
Loading…
x
Reference in New Issue
Block a user