Skip to content

Commit 857a9f3

Browse files
committed
[WebProfilerBundle] Fixed template to work with the new behavior of {% set %}
1 parent 418655e commit 857a9f3

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
@@ -19,7 +19,7 @@
1919
<ul>
2020
{% for name, template in templates %}
2121
{% set menu %}{{ template.renderBlock('menu', { 'collector': profiler.get(name)}) }}{% endset %}
22-
{% if menu %}
22+
{% if menu != '' %}
2323
<li
2424
{% if name == panel %}class="selected"{% endif %}
2525
>

0 commit comments

Comments
 (0)