add define() for HttpUtilsParam

in function delete and shutdown
This commit is contained in:
Marko Oldenburg 2020-06-19 07:32:24 +02:00
parent f3c27d9f23
commit 851f09d90a
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;
}