add check if defined
This commit is contained in:
parent
ad10d780b6
commit
6048f98e02
@ -59,7 +59,7 @@ use strict;
|
||||
use warnings;
|
||||
use FHEM::Meta;
|
||||
|
||||
my $version = "1.6.1";
|
||||
my $version = "1.6.2";
|
||||
|
||||
|
||||
sub GardenaSmartBridge_Initialize($) {
|
||||
@ -497,7 +497,8 @@ sub ErrorHandling($$$) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
if ( defined($param)
|
||||
and $param
|
||||
(
|
||||
( $data =~ /Error/ )
|
||||
or defined( eval { decode_json($data) }->{errors} )
|
||||
|
Loading…
x
Reference in New Issue
Block a user