Skip to content

Commit 0d029c3

Browse files
authored
Merge pull request #416 from HypeMC/profiler-fix
Debug toolbar breaks when executed migrations list is empty
2 parents d124847 + defdca7 commit 0d029c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Collector/migrations.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% set text %}
2020
<div class="sf-toolbar-info-piece">
2121
<b>Current</b>
22-
<span>{{ collector.data.executed_migrations|last.version|split('\\')|last }}</span>
22+
<span>{{ executed_migrations > 0 ? collector.data.executed_migrations|last.version|split('\\')|last : 'n/a' }}</span>
2323
</div>
2424
<div class="sf-toolbar-info-piece">
2525
<b>Executed</b>

0 commit comments

Comments
 (0)