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 bae09c8480
commit c8a26f225d

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} = "";
}