From 46baf1815f3da89b95185f9e3a8ff682ffa4b27f Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 10 Jan 2013 00:42:53 -0600 Subject: [PATCH] SSH1: Fix E_NOTICE --- phpseclib/Net/SSH1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index 32deab51..3f69496c 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -846,7 +846,7 @@ class Net_SSH1 { while (true) { if ($mode == NET_SSH1_READ_REGEX) { preg_match($expect, $this->interactiveBuffer, $matches); - $match = $matches[0]; + $match = isset($matches[0]) ? $matches[0] : array(); } $pos = strpos($this->interactiveBuffer, $match); if ($pos !== false) {