SFTP: remove isset() from constructor

This commit is contained in:
terrafrost 2013-06-10 15:42:35 -05:00
parent 799c8e322f
commit 5c3c9f990f

View File

@ -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: