Skip to content

Commit ab4af68

Browse files
Merge pull request #18144 from kamil-tekiela/Util-formatNumber-type-bug
Fix bug preventing opening information_schema
2 parents ac58c08 + 4f20be0 commit ab4af68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎templates/table/structure/display_table_stats.twig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
{% if not is_innodb and showtable['Rows'] is defined %}
118118
<tr>
119119
<th class="name">{% trans 'Rows' %}</th>
120-
<td class="value">{{ format_number(showtable['Rows'], 0) }}</td>
120+
<td class="value">{{ format_number(showtable['Rows'] ?? 0, 0) }}</td>
121121
</tr>
122122
{% endif %}
123123

@@ -145,7 +145,7 @@
145145
{% if showtable['Auto_increment'] is defined %}
146146
<tr>
147147
<th class="name">{% trans 'Next autoindex' %}</th>
148-
<td class="value">{{ format_number(showtable['Auto_increment'], 0) }}</td>
148+
<td class="value">{{ format_number(showtable['Auto_increment'] ?? 0, 0) }}</td>
149149
</tr>
150150
{% endif %}
151151

0 commit comments

Comments
 (0)