add define() for HttpUtilsParam
in function delete and shutdown
This commit is contained in:
parent
f3c27d9f23
commit
851f09d90a
@ -1,2 +1,2 @@
|
||||
UPD 2020-06-18_12:31:03 3369 FHEM/98_backupToStorage.pm
|
||||
UPD 2020-06-18_12:29:29 15616 lib/FHEM/backupToStorage.pm
|
||||
UPD 2020-06-19_07:32:03 15634 lib/FHEM/backupToStorage.pm
|
||||
|
@ -178,7 +178,7 @@ sub Delete {
|
||||
my $name = shift;
|
||||
|
||||
HttpUtils_Close( $hash->{helper}->{HttpUtilsParam} )
|
||||
if ( $hash->{helper}->{HttpUtilsParam} );
|
||||
if ( defined($hash->{helper}->{HttpUtilsParam}) );
|
||||
DeletePassword($hash);
|
||||
|
||||
return;
|
||||
@ -188,7 +188,7 @@ sub Shutdown {
|
||||
my $hash = shift;
|
||||
|
||||
HttpUtils_Close( $hash->{helper}->{HttpUtilsParam} )
|
||||
if ( $hash->{helper}->{HttpUtilsParam} );
|
||||
if ( defined($hash->{helper}->{HttpUtilsParam}) );
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user