Skip to content
Snippets Groups Projects
Unverified Commit 268c0d97 authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Check if array element is present before access

parent 10388eab
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment