From 276d4f7e6789e4aa7e88860e48f61c88d3f69f25 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 25 Jan 2018 14:20:41 +0100 Subject: [PATCH] IcingaException::getConfidentialTraceAsString(): don't fail on internal functions refs #3318 --- library/Icinga/Exception/IcingaException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Exception/IcingaException.php b/library/Icinga/Exception/IcingaException.php index cb3dd3d94..7713499e5 100644 --- a/library/Icinga/Exception/IcingaException.php +++ b/library/Icinga/Exception/IcingaException.php @@ -74,7 +74,9 @@ class IcingaException extends Exception $trace = array(); foreach ($exception->getTrace() as $index => $frame) { - $trace[] = "#{$index} {$frame['file']}({$frame['line']}): "; + $trace[] = isset($frame['file']) + ? "#{$index} {$frame['file']}({$frame['line']}): " + : "#{$index} [internal function]: "; if (isset($frame['class'])) { $trace[] = $frame['class'];