kopia lustrzana https://github.com/friendica/friendica
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>pull/10551/head
rodzic
8dd21d82f5
commit
c03fb998f4
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue