diff --git a/fhem/FHEM/SetExtensions.pm b/fhem/FHEM/SetExtensions.pm index 0bf4051fc..2151596d0 100644 --- a/fhem/FHEM/SetExtensions.pm +++ b/fhem/FHEM/SetExtensions.pm @@ -12,7 +12,7 @@ sub SetExtensionsCancel($) { my ($hash) = @_; - $hash = $defs{$hash} if( ref($hash) ne 'ARRAY' ); + $hash = $defs{$hash} if( ref($hash) ne 'HASH' ); return undef if( !$hash ); my $name = $hash->{NAME};