Merge branch 'bugfix/confidential-stacktrace-errors-3318'

fixes #3318
This commit is contained in:
Alexander A. Klimov 2018-01-25 15:27:29 +01:00
commit f2f9ab5bc0
1 changed files with 3 additions and 1 deletions

View File

@ -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'];