summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-02-21 20:45:13 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-02-22 11:53:27 +0000
commit9caf7bbd47cdf67762f03cb8a5dcdac674e759fc (patch)
tree72855373204004089ebfdd6df40d4790d531ed8c
parentb879d28f24af00d5b13455d579e7e60565596f93 (diff)
downloadnextcloud-server-9caf7bbd47cdf67762f03cb8a5dcdac674e759fc.tar.gz
nextcloud-server-9caf7bbd47cdf67762f03cb8a5dcdac674e759fc.zip
Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-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;
}