8000 bug #23806 [Profiler] Fix request_collector check in main layout (ogi… · symfony/symfony@a9c01dd · GitHub
[go: up one dir, main page]

Skip to content

Commit a9c01dd

Browse files
bug #23806 [Profiler] Fix request_collector check in main layout (ogizanagi)
This PR was merged into the 3.3 branch. Discussion ---------- [Profiler] Fix request_collector check in main layout | Q | A | ------------- | --- | Branch? | 3.3 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | N/A <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A I minor issue I hit when debugging and disabling some collectors some time ago. Commits ------- c35cdba [Profiler] Fix request_collector check in main layout
2 parents 9269ee1 + c35cdba commit a9c01dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</h2>
2121

2222
{% set request_collector = profile.collectors.request|default(false) %}
23-
{% if request_collector is defined and request_collector.redirect -%}
23+
{% if request_collector and request_collector.redirect -%}
2424
{%- set redirect = request_collector.redirect -%}
2525
{%- set controller = redirect.controller -%}
2626
{%- set redirect_route = '@' ~ redirect.route %}

0 commit comments

Comments
 (0)
0