diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
index 9e8558a8b0..3deb423a6a 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig
@@ -49,24 +49,33 @@
{{ token }}
-
- {{ collector.appname }}{{ collector.env }}
-
+ {% if 'n/a' != collector.appname or 'n/a' != collector.env %}
+
+ {{ collector.appname }}
+ {{ collector.env }}
+
+ {% endif %}
{% endset %}
{% set text %}
{% spaceless %}
-
- Name
- {{ collector.appname }}
-
-
- Environment
- {{ collector.env }}
-
-
- Debug
- {{ collector.debug ? 'en' : 'dis' }}abled
-
+ {% if 'n/a' != collector.appname %}
+
+ Name
+ {{ collector.appname }}
+
+ {% endif %}
+ {% if 'n/a' != collector.env %}
+
+ Environment
+ {{ collector.env }}
+
+ {% endif %}
+ {% if 'n/a' != collector.debug %}
+
+ Debug
+ {{ collector.debug ? 'en' : 'dis' }}abled
+
+ {% endif %}
Token
@@ -100,18 +109,24 @@
Symfony version |
{{ collector.symfonyversion }} |
-
- Application name |
- {{ collector.appname }} |
-
-
- Environment |
- {{ collector.env }} |
-
-
- Debug |
- {{ collector.debug ? 'enabled' : 'disabled' }} |
-
+ {% if 'n/a' != collector.appname %}
+
+ Application name |
+ {{ collector.appname }} |
+
+ {% endif %}
+ {% if 'n/a' != collector.env %}
+
+ Environment |
+ {{ collector.env }} |
+
+ {% endif %}
+ {% if 'n/a' != collector.debug %}
+
+ Debug |
+ {{ collector.debug ? 'enabled' : 'disabled' }} |
+
+ {% endif %}
PHP configuration