mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 00:19:00 +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:
parent
b2d722ac62
commit
ed86c8eb5e
@ -453,7 +453,7 @@ if($cfgRet) {
|
|||||||
$attr{global}{motd} = "$cfgErrMsg\n$cfgRet";
|
$attr{global}{motd} = "$cfgErrMsg\n$cfgRet";
|
||||||
Log 1, $cfgRet;
|
Log 1, $cfgRet;
|
||||||
|
|
||||||
} elsif($attr{global}{motd} =~ m/^$cfgErrMsg/) {
|
} elsif($attr{global}{motd} && $attr{global}{motd} =~ m/^$cfgErrMsg/) {
|
||||||
$attr{global}{motd} = "";
|
$attr{global}{motd} = "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user