1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-03 10:08:04 +01:00

Fix an E_NOTICE (thanks chubbypama!)

This commit is contained in:
terrafrost 2012-11-28 08:17:57 -06:00
parent ff94576315
commit dbc10491e7

View File

@ -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) {