Check if array element is present before access

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-02-21 20:45:13 +01:00
parent 10388eab34
commit 268c0d97bf
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Console extends Action {
* @param $arguments
*/
public function runCommand(array $arguments) {
if ($arguments[1] === '_completion') {
if (!isset($arguments[1]) || $arguments[1] === '_completion') {
// Don't log autocompletion
return;
}