From 268c0d97bf42d135b5b9db6c7d515fad0b434a86 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 21 Feb 2019 20:45:13 +0100 Subject: Check if array element is present before access Signed-off-by: Daniel Kesselberg --- apps/admin_audit/lib/Actions/Console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/admin_audit') diff --git a/apps/admin_audit/lib/Actions/Console.php b/apps/admin_audit/lib/Actions/Console.php index 8b25f9b3860..9279e6f30c8 100644 --- a/apps/admin_audit/lib/Actions/Console.php +++ b/apps/admin_audit/lib/Actions/Console.php @@ -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; } -- cgit v1.2.3