Skip to content

Commit 268c0d9

Browse files
committed
Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 10388ea commit 268c0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/admin_audit/lib/Actions/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Console extends Action {
3030
* @param $arguments
3131
*/
3232
public function runCommand(array $arguments) {
33-
if ($arguments[1] === '_completion') {
33+
if (!isset($arguments[1]) || $arguments[1] === '_completion') {
3434
// Don't log autocompletion
3535
return;
3636
}

0 commit comments

Comments
 (0)