diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-21 20:45:13 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-02-22 11:41:20 +0100 |
commit | 268c0d97bf42d135b5b9db6c7d515fad0b434a86 (patch) | |
tree | 5c3653746d748506f308a76eb0fa8e69fc301c1e /apps/admin_audit | |
parent | 10388eab342a46e034eb6bfb89fbfd232d8ec2a5 (diff) | |
download | nextcloud-server-268c0d97bf42d135b5b9db6c7d515fad0b434a86.tar.gz nextcloud-server-268c0d97bf42d135b5b9db6c7d515fad0b434a86.zip |
Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r-- | apps/admin_audit/lib/Actions/Console.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |