diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 6c29de333..1a84af0f2 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -5380,7 +5380,7 @@ SecurityCheck() unshift(@fnd, "SecurityCheck:"); push(@fnd, "You can disable this message with attr global motd none"); $attr{global}{motd} = join("\n", @fnd); - } elsif($attr{global}{motd} =~ m/^SecurityCheck/) { + } elsif(AttrVal('global','motd','') =~ m/^SecurityCheck/) { delete $attr{global}{motd}; } }