[Console] Fixed notice in QuestionHelper
This commit is contained in:
parent
598d85cf01
commit
9fe4b88aaa
@ -212,7 +212,7 @@ class QuestionHelper extends Helper
|
|||||||
$c .= fread($inputStream, 2);
|
$c .= fread($inputStream, 2);
|
||||||
|
|
||||||
// A = Up Arrow. B = Down Arrow
|
// 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) {
|
if ('A' === $c[2] && -1 === $ofs) {
|
||||||
$ofs = 0;
|
$ofs = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user