[Console] Fixed notice in DialogHelper

This commit is contained in:
florianv 2014-06-19 01:02:32 +02:00
parent fbf92e58cb
commit ff6c65ecf7
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class DialogHelper extends Helper
$c .= fread($inputStream, 2);
// A = Up Arrow. B = Down Arrow
if ('A' === $c[2] || 'B' === $c[2]) {
if (isset($c[2]) && ('A' === $c[2] || 'B' === $c[2])) {
if ('A' === $c[2] && -1 === $ofs) {
$ofs = 0;
}