diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 30cbc86b..4df25c16 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -169,7 +169,7 @@ class Net_SFTP_Stream { if ($host[0] == '$') { $host = substr($host, 1); global $$host; - if (!is_object($$host) || get_class($$host) != 'Net_sFTP') { + if (!is_object($$host) || get_class($$host) != 'Net_SFTP') { return false; } $this->sftp = $$host;