Skip to content

Commit 9e970f1

Browse files
committed
setting defaults to prevent error messages in apache logfiles
1 parent edafc57 commit 9e970f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/bootstrap/admin/wallet/peers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<td>{$ARRAY['version']}</td>
2323
<td>{$ARRAY['subver']|replace:'/':''}</td>
2424
<td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td>
25-
<td>{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB</td>
25+
<td>{(($ARRAY['bytessent']|default:"0" + $ARRAY['bytesrecv']|default:"0") / 1024 / 1024)|number_format:"3"} MB</td>
2626
</tr>
2727
{/foreach}
2828
</tbody>

templates/bootstrap/admin/wallet/transactions.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{foreach key=KEY item=ARRAY from=$TRANSACTIONS}
2323
<tr>
2424
<td class="text-center">{$ARRAY['account']|default:"Default"}</td>
25-
<td class="text-center">{$ARRAY['address']}</td>
25+
<td class="text-center">{$ARRAY['address']|default:""}</td>
2626
<td class="text-center">{$ARRAY['category']|capitalize}</td>
2727
<td class="text-right">{$ARRAY['amount']|number_format:"$PRECISION"}</td>
2828
<td class="text-right">{$ARRAY['confirmations']}</td>

0 commit comments

Comments
 (0)