summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-21 20:45:13 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-02-22 11:41:20 +0100
commit268c0d97bf42d135b5b9db6c7d515fad0b434a86 (patch)
tree5c3653746d748506f308a76eb0fa8e69fc301c1e /apps/admin_audit
parent10388eab342a46e034eb6bfb89fbfd232d8ec2a5 (diff)
downloadnextcloud-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.php2
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;
}