notify: fixing last change (was always executed)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5419 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-04-03 07:37:46 +00:00
parent 77d583e73b
commit 061b38c458

View File

@ -84,10 +84,10 @@ notify_Exec($$)
my $r = AnalyzeCommandChain(undef, $exec);
Log3 $ln, 3, "$ln return value: $r" if($r);
$ret .= " $r" if($r);
$ntfy->{STATE} =
AttrVal($ln,'showTriggerTime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
}
}
$ntfy->{STATE} =
AttrVal($ln,'showTriggerTime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
return $ret if(AttrVal($ln, "forwardReturnValue", 0));
return undef;