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:
@@ -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} = "";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user