diff --git a/src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig b/src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig
index 71f0082725..5ba9af9fe7 100644
--- a/src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig
+++ b/src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig
@@ -69,28 +69,34 @@
}
-
- {% for dump in collector.getDumps('html') %}
- -
- in
- {% if dump.line %}
- {% set link = dump.file|file_link(dump.line) %}
- {% if link %}
- {{ dump.name }}
+ {% if collector.dumpsCount %}
+
+ {% for dump in collector.getDumps('html') %}
+ -
+ in
+ {% if dump.line %}
+ {% set link = dump.file|file_link(dump.line) %}
+ {% if link %}
+ {{ dump.name }}
+ {% else %}
+ {{ dump.name }}
+ {% endif %}
{% else %}
- {{ dump.name }}
+ {{ dump.name }}
{% endif %}
- {% else %}
- {{ dump.name }}
- {% endif %}
- line {{ dump.line }}:
- ▶
-
- {% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
-
+ line {{ dump.line }}:
+ ▶
+
+ {% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
+
- {{ dump.data|raw }}
-
- {% endfor %}
-
+ {{ dump.data|raw }}
+
+ {% endfor %}
+
+ {% else %}
+
+ No dumped variable
+
+ {% endif %}
{% endblock %}