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 23dc884

Browse filesBrowse files
committed
Fixed a potential issue in the request panel
1 parent 7c35d25 commit 23dc884
Copy full SHA for 23dc884

File tree

1 file changed

+6
-4
lines changed
Filter options

1 file changed

+6
-4
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@
4040
<b>Controller method</b>
4141
<span>{{ request_handler }}</span>
4242
</div>
43-
<div class="sf-toolbar-info-piece">
44-
<b>Controller file</b>
45-
<span>{{ collector.controller.class }}</span>
46-
</div>
43+
{% if collector.controller.class is defined %}
44+
<div class="sf-toolbar-info-piece">
45+
<b>Controller file</b>
46+
<span>{{ collector.controller.class }}</span>
47+
</div>
48+
{% endif %}
4749
<div class="sf-toolbar-info-piece">
4850
<b>Route name</b>
4951
<span>{{ collector.route|default('NONE') }}</span>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.