mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 00:51:10 -04:00
Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
b879d28f24
commit
9caf7bbd47
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue