2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

Avoid "Cannot autoload UNDEFINED", if the autoloaded module has syntax errors

git-svn-id: https://svn.fhem.de/fhem/trunk@1736 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-07-17 14:49:20 +00:00
parent 662cd0559f
commit 81c9304783

View File

@ -2379,7 +2379,8 @@ Dispatch($$$)
my ($order, $mname) = split(":", $m);
if($attr{global}{autoload_undefined_devices}) {
$mname = LoadModule($mname);
my $newm = LoadModule($mname);
$mname = $newm if($newm ne "UNDEFINED");
if($modules{$mname} && $modules{$mname}{ParseFn}) {
no strict "refs";
@found = &{$modules{$mname}{ParseFn}}($hash,$dmsg);