IcingaException::getConfidentialTraceAsString(): respect functions which don't take args "by definition"

This commit is contained in:
Alexander A. Klimov 2018-02-13 12:46:06 +01:00
parent 5d91ee8b3c
commit 2355224b05

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";
}