Merge pull request #3358 from Icinga/bugfix/getconfidentialtraceasstring-index-args

IcingaException::getConfidentialTraceAsString(): respect functions which don't take args "by definition"
This commit is contained in:
lippserd 2018-02-21 09:18:49 +01:00 committed by GitHub
commit 2f2bde28fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -88,6 +88,7 @@ class IcingaException extends Exception
$trace[] = "{$frame['function']}(";
if (isset($frame['args'])) {
$args = array();
foreach ($frame['args'] as $arg) {
$type = gettype($arg);
@ -95,6 +96,7 @@ class IcingaException extends Exception
}
$trace[] = implode(', ', $args);
}
$trace[] = ")\n";
}