Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
10388eab34
commit
268c0d97bf
|
@ -30,7 +30,7 @@ class Console extends Action {
|
||||||
* @param $arguments
|
* @param $arguments
|
||||||
*/
|
*/
|
||||||
public function runCommand(array $arguments) {
|
public function runCommand(array $arguments) {
|
||||||
if ($arguments[1] === '_completion') {
|
if (!isset($arguments[1]) || $arguments[1] === '_completion') {
|
||||||
// Don't log autocompletion
|
// Don't log autocompletion
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue