mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Fix an E_NOTICE (thanks chubbypama!)
This commit is contained in:
parent
ff94576315
commit
dbc10491e7
@ -1959,7 +1959,7 @@ class Net_SSH2 {
|
|||||||
while (true) {
|
while (true) {
|
||||||
if ($mode == NET_SSH2_READ_REGEX) {
|
if ($mode == NET_SSH2_READ_REGEX) {
|
||||||
preg_match($expect, $this->interactiveBuffer, $matches);
|
preg_match($expect, $this->interactiveBuffer, $matches);
|
||||||
$match = $matches[0];
|
$match = isset($matches[0]) ? $matches[0] : array();
|
||||||
}
|
}
|
||||||
$pos = !empty($match) ? strpos($this->interactiveBuffer, $match) : false;
|
$pos = !empty($match) ? strpos($this->interactiveBuffer, $match) : false;
|
||||||
if ($pos !== false) {
|
if ($pos !== false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user