- small fix in if condition for scp/sftp switch
This commit is contained in:
@@ -182,7 +182,7 @@ class FroxlorSshTransport
|
|||||||
}
|
}
|
||||||
|
|
||||||
// send file with scp if fopen() is disabled
|
// send file with scp if fopen() is disabled
|
||||||
if (ssh2_scp_send($this->_connection, $localFile, $remoteFile, $chmod) && !function_exists("fopen")) {
|
if (!function_exists("fopen") && ssh2_scp_send($this->_connection, $localFile, $remoteFile, $chmod)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user