[TwigBundle] Fix trace to not show 'in at line' when file/line are empty.

This commit is contained in:
Danny Berger 2011-11-11 18:20:32 -06:00
parent bb5fb79c3d
commit 4858fbe7e0

View File

@ -5,10 +5,10 @@
{{ trace.type ~ trace.function }}
</strong>
({{ trace.args|format_args }})
<br />
{% endif %}
{% if trace.file is defined and trace.line is defined %}
{% if trace.file is defined and trace.file and trace.line is defined and trace.line %}
{{ trace.function ? '<br />' : '' }}
in {{ trace.file|format_file(trace.line) }}&nbsp;
{% spaceless %}
<a href="#" onclick="toggle('trace_{{ prefix ~ '_' ~ i }}'); switchIcons('icon_{{ prefix ~ '_' ~ i }}_open', 'icon_{{ prefix ~ '_' ~ i }}_close'); return false;">