2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhem.pl: check for undefined motd

git-svn-id: https://svn.fhem.de/fhem/trunk@5503 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-04-10 07:50:19 +00:00
parent b2d722ac62
commit ed86c8eb5e

View File

@ -453,7 +453,7 @@ if($cfgRet) {
$attr{global}{motd} = "$cfgErrMsg\n$cfgRet";
Log 1, $cfgRet;
} elsif($attr{global}{motd} =~ m/^$cfgErrMsg/) {
} elsif($attr{global}{motd} && $attr{global}{motd} =~ m/^$cfgErrMsg/) {
$attr{global}{motd} = "";
}