Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23dc884

Browse files
committed
Fixed a potential issue in the request panel
1 parent 7c35d25 commit 23dc884

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines 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)