Skip to content

Commit

Permalink
Merge pull request #85 from argiepiano/1.x-1.x-issue-80
Browse files Browse the repository at this point in the history
Issue #80. Check if $ftp->__conn is empty before attempting ftp_systype
  • Loading branch information
argiepiano authored Jun 11, 2023
2 parents d319cf0 + b061a17 commit 98834a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/destinations.ftp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function backdrop_ftp_connected(&$ftp) {
return FALSE;
}

if (!@ftp_systype($ftp->__conn)) {
if (empty($ftp->__conn) || !@ftp_systype($ftp->__conn)) {
// The connection is dead
return FALSE;
}
Expand Down

0 comments on commit 98834a7

Please sign in to comment.