[Console] Fixed notice in DialogHelper
This commit is contained in:
parent
fbf92e58cb
commit
ff6c65ecf7
@ -150,7 +150,7 @@ class DialogHelper 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