Merge pull request #14332 from nextcloud/bugfix/13098-unsafe-array-access

Fix unsafe array access
This commit is contained in:
Roeland Jago Douma 2019-02-22 12:52:36 +01:00 committed by GitHub
commit 9b15470c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}