From 80b76c6f7dbd528b39de54c37bdf50c288efb3c4 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 09:33:15 +0200 Subject: [PATCH] IcingaException: Fix `Variable '$index' is probably undefined` --- library/Icinga/Exception/IcingaException.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Exception/IcingaException.php b/library/Icinga/Exception/IcingaException.php index 58e17dbd1..f3d06d159 100644 --- a/library/Icinga/Exception/IcingaException.php +++ b/library/Icinga/Exception/IcingaException.php @@ -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']}): "