SSH1: Fix E_NOTICE

This commit is contained in:
terrafrost 2013-01-10 00:42:53 -06:00
parent c3ee632587
commit 46baf1815f

View File

@ -846,7 +846,7 @@ class Net_SSH1 {
while (true) { while (true) {
if ($mode == NET_SSH1_READ_REGEX) { if ($mode == NET_SSH1_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 = strpos($this->interactiveBuffer, $match); $pos = strpos($this->interactiveBuffer, $match);
if ($pos !== false) { if ($pos !== false) {