- small fix in if condition for scp/sftp switch

This commit is contained in:
Andreas Burchert (scarya)
2010-10-19 09:20:32 +00:00
parent 9e028ef0f7
commit c0b19fa2b2

View File

@@ -182,7 +182,7 @@ class FroxlorSshTransport
}
// 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;
} else {
return false;