notify: showTriggerTime fixes

git-svn-id: https://svn.fhem.de/fhem/trunk@5362 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-29 07:02:12 +00:00
parent 291bc21d29
commit d2b76d8fe2

View File

@ -69,8 +69,8 @@ notify_Exec($$)
$found = ("$n:$s" =~ m/^$re$/);
}
if($found) {
$ntfy->{STATE} = $dev->{NTFY_TRIGGERTIME}
if(AttrVal($ln, 'showTriggerTime', 0));
$ntfy->{STATE} =
AttrVal($ln,'showTriggerTime',0) ? $dev->{NTFY_TRIGGERTIME} : 'active';
Log3 $ln, 5, "Triggering $ln";
my (undef, $exec) = split("[ \t]+", $ntfy->{DEF}, 2);