2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-28 02:44:53 +00:00

fhem.pl: fix IsDisabled inactive checking without attributes (Forum )

git-svn-id: https://svn.fhem.de/fhem/trunk@17652 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-10-31 14:12:24 +00:00
parent f9a6012dcb
commit c712ce0fe0

@ -841,7 +841,7 @@ sub
IsDisabled($)
{
my $devname = shift;
return 0 if(!$devname || !defined($attr{$devname}));
return 0 if(!$devname); # no check for $attr{$devname}, #92623
return 1 if($attr{$devname}{disable});
return 3 if($defs{$devname} && $defs{$devname}{STATE} &&