From c0b19fa2b2ba48b0bd699ec39fa0a7f0d9cda9e6 Mon Sep 17 00:00:00 2001 From: "Andreas Burchert (scarya)" Date: Tue, 19 Oct 2010 09:20:32 +0000 Subject: [PATCH] - small fix in if condition for scp/sftp switch --- lib/classes/sshtransport/class.FroxlorSshTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/sshtransport/class.FroxlorSshTransport.php b/lib/classes/sshtransport/class.FroxlorSshTransport.php index f3a74b2c..a6d392d1 100644 --- a/lib/classes/sshtransport/class.FroxlorSshTransport.php +++ b/lib/classes/sshtransport/class.FroxlorSshTransport.php @@ -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;