Skip to content

Commit

Permalink
Merge pull request #968 from doctrine/967
Browse files Browse the repository at this point in the history
Skip generating link for backtrace record with missing file, fixes #967
  • Loading branch information
ostrolucky authored May 13, 2019
2 parents f2a47c0 + e86af6c commit 09a3841
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Resources/views/Collector/db.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,14 @@
<td>
<span class="text-small">
{% set line_number = trace.line|default(1) %}
<a href="{{ trace.file|file_link(line_number) }}">
{% if trace.file is defined %}
<a href="{{ trace.file|file_link(line_number) }}">
{% endif %}
{{- trace.class|default ~ (trace.class is defined ? trace.type|default('::')) -}}
<span class="status-warning">{{ trace.function }}</span>
</a>
{% if trace.file is defined %}
</a>
{% endif %}
(line {{ line_number }})
</span>
</td>
Expand Down

0 comments on commit 09a3841

Please sign in to comment.