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-09 11:25:54 +0200 |
commit | eb8c2e98bdea0f57784233a96879bf41a7c249ef (patch) | |
tree | 300d88d8652c0f8e13dc35b2bc81a1c98aa21ac7 | |
parent | 04bb1510fda52f33b5c8f0cb9a3b4065418f8ef3 (diff) | |
download | nextcloud-server-eb8c2e98bdea0f57784233a96879bf41a7c249ef.tar.gz nextcloud-server-eb8c2e98bdea0f57784233a96879bf41a7c249ef.zip |
fix class might be undefined
Co-Authored-By: blizzz <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-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); } |