notify: showTriggerTime fixes

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5362 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-03-29 07:02:12 +00:00
parent b79e4ca84e
commit 3747e4325f

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);