mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 16:49:42 +01: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) {
|
||||
if ($mode == NET_SSH2_READ_REGEX) {
|
||||
preg_match($expect, $this->interactiveBuffer, $matches);
|
||||
$match = $matches[0];
|
||||
$match = isset($matches[0]) ? $matches[0] : array();
|
||||
}
|
||||
$pos = !empty($match) ? strpos($this->interactiveBuffer, $match) : false;
|
||||
if ($pos !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user