From c03fb998f4b979e5fe61778802d384792e84626c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 27 Jul 2021 15:16:31 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- src/Util/Profiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Profiler.php b/src/Util/Profiler.php index 189a7e2e06..0f28f23d0a 100644 --- a/src/Util/Profiler.php +++ b/src/Util/Profiler.php @@ -126,7 +126,6 @@ class Profiler implements ContainerInterface $callstack = $callstack ?: System::callstack(4, $value == 'rendering' ? 0 : 1); if (!isset($this->performance[$value])) { - // Prevent ugly E_NOTICE $this->performance[$value] = 0; } @@ -283,6 +282,7 @@ class Profiler implements ContainerInterface } } } + if (isset($this->callstack["rendering"])) { $output .= "\nRendering:\n"; foreach ($this->callstack["rendering"] as $func => $time) {