IcingaException: Fix `Variable '$index' is probably undefined`

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 09:33:15 +02:00 committed by raviks789
parent 6baf3bc80a
commit 80b76c6f7d
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class IcingaException extends Exception
{
$trace = array();
$index = 0;
foreach ($exception->getTrace() as $index => $frame) {
$trace[] = isset($frame['file'])
? "#{$index} {$frame['file']}({$frame['line']}): "