]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix class might be undefined 15443/head
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>
Wed, 8 May 2019 08:00:33 +0000 (10:00 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 9 May 2019 09:25:54 +0000 (11:25 +0200)
Co-Authored-By: blizzz <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Log/ExceptionSerializer.php

index b9932cfa05ceb99cc9e9adf9a9f773d0130992ab..8cfdb57b225cec373f547c043bfcb0b91b16795c 100644 (file)
@@ -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);
                        }