diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2019-05-08 10:00:33 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-08 10:04:19 +0200 |
commit | a79da346b6c20f65c397d586fe1e10f76b60c5d0 (patch) | |
tree | 0f3e73291d286bfadda72ba21f5c199c02855b5b /lib/private/Log | |
parent | d6d1666600c0d19a67d8e2e2e3636ac1adaba19b (diff) | |
download | nextcloud-server-a79da346b6c20f65c397d586fe1e10f76b60c5d0.tar.gz nextcloud-server-a79da346b6c20f65c397d586fe1e10f76b60c5d0.zip |
fix class might be undefined
Co-Authored-By: blizzz <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Log')
-rw-r--r-- | lib/private/Log/ExceptionSerializer.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php index b9932cfa05c..8cfdb57b225 100644 --- a/lib/private/Log/ExceptionSerializer.php +++ b/lib/private/Log/ExceptionSerializer.php @@ -100,8 +100,8 @@ class ExceptionSerializer { private function filterTrace(array $trace) { $sensitiveValues = []; $trace = array_map(function (array $traceLine) use (&$sensitiveValues) { - $className = $traceLine['class']; - if (isset(self::methodsWithSensitiveParametersByClass[$className]) + $className = $traceLine['class'] ?? ''; + if ($className && isset(self::methodsWithSensitiveParametersByClass[$className]) && in_array($traceLine['function'], self::methodsWithSensitiveParametersByClass[$className], true)) { return $this->editTrace($sensitiveValues, $traceLine); } |