2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhem.pl: fix warning (Forum #81509)

git-svn-id: https://svn.fhem.de/fhem/trunk@15688 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-25 16:48:11 +00:00
parent 5bc17cfbe1
commit f0a67df5a5

View File

@ -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};
}
}