[Console] Fixed notice in QuestionHelper

This commit is contained in:
florianv 2014-06-19 01:05:50 +02:00
parent 598d85cf01
commit 9fe4b88aaa

View File

@ -212,7 +212,7 @@ class QuestionHelper 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;
}