Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9c01dd

Browse filesBrowse 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
Copy full SHA for a9c01dd

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.