diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2019-05-08 10:00:33 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-05-08 13:53:59 +0000 |
commit | 7b4b2c61864af2d5115649e16efab467cabab341 (patch) | |
tree | d72f0451ee0c62470919d80a650c9e32af0ceb45 /lib | |
parent | c9a0fbef62dd7fda9c3c2511e32c5d241d662f79 (diff) | |
download | nextcloud-server-7b4b2c61864af2d5115649e16efab467cabab341.tar.gz nextcloud-server-7b4b2c61864af2d5115649e16efab467cabab341.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')
-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); } |