fhem.pl: check for undefined motd

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5503 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-04-10 07:50:19 +00:00
parent e046cd3ac8
commit 14329e6352

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