SetExtensions.pm: fix by justme1968 (Forum #53137)

git-svn-id: https://svn.fhem.de/fhem/trunk@11513 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-05-24 17:56:05 +00:00
parent f32910c60b
commit 4f421bbee7

View File

@ -12,7 +12,7 @@ sub
SetExtensionsCancel($) SetExtensionsCancel($)
{ {
my ($hash) = @_; my ($hash) = @_;
$hash = $defs{$hash} if( ref($hash) ne 'ARRAY' ); $hash = $defs{$hash} if( ref($hash) ne 'HASH' );
return undef if( !$hash ); return undef if( !$hash );
my $name = $hash->{NAME}; my $name = $hash->{NAME};