mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
SFTP: remove isset() from constructor
This commit is contained in:
parent
799c8e322f
commit
5c3c9f990f
@ -201,7 +201,7 @@ class Net_SFTP_Stream {
|
||||
if (isset(self::$instances[$host][$port][$user][(string) $pass])) {
|
||||
$this->sftp = self::$instances[$host][$port][$user][(string) $pass];
|
||||
} else {
|
||||
$this->sftp = new Net_SFTP($host, isset($port) ? $port : 22);
|
||||
$this->sftp = new Net_SFTP($host, $port);
|
||||
if (isset($this->notification) && is_callable($this->notification)) {
|
||||
/* if !is_callable($this->notification) we could do this:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user