mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-11-22 09:49:50 +00:00
98_RandomTimer: the processing of a error improved get rig of a PERL WARING: http://forum.fhem.de/index.php/topic,14010.msg243159.html#msg243159
git-svn-id: https://svn.fhem.de/fhem/trunk@7495 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f5814c3ba7
commit
912b31ae50
@ -409,7 +409,10 @@ sub RandomTimer_isDisabled($) {
|
||||
my $disableCond = AttrVal($hash->{NAME}, "disableCond", "");
|
||||
|
||||
$disable = $disable || eval ($disableCond);
|
||||
$@ =~ s/\n/ /g; Log3 ($hash, 3, "[$hash->{NAME}] " . $@) if ($@);
|
||||
if ($@) {
|
||||
$@ =~ s/\n/ /g;
|
||||
Log3 ($hash, 3, "[$hash->{NAME}] " . $@);
|
||||
}
|
||||
$disable = 0 if (!defined($disable));
|
||||
|
||||
return $disable;
|
||||
|
Loading…
Reference in New Issue
Block a user