IcingaException: Fix `Variable '$index' is probably undefined`
This commit is contained in:
parent
6baf3bc80a
commit
80b76c6f7d
|
@ -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']}): "
|
||||
|
|
Loading…
Reference in New Issue