From 9e970f16a05c8c860a1860a7e777f02bb2ed30ec Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 4 Jul 2016 12:43:35 +0200 Subject: [PATCH] setting defaults to prevent error messages in apache logfiles --- templates/bootstrap/admin/wallet/peers.tpl | 2 +- templates/bootstrap/admin/wallet/transactions.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/bootstrap/admin/wallet/peers.tpl b/templates/bootstrap/admin/wallet/peers.tpl index fe7a74aa..50770d3f 100644 --- a/templates/bootstrap/admin/wallet/peers.tpl +++ b/templates/bootstrap/admin/wallet/peers.tpl @@ -22,7 +22,7 @@ {$ARRAY['version']} {$ARRAY['subver']|replace:'/':''} {$ARRAY['conntime']|date_format:$GLOBAL.config.date} - {(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB + {(($ARRAY['bytessent']|default:"0" + $ARRAY['bytesrecv']|default:"0") / 1024 / 1024)|number_format:"3"} MB {/foreach} diff --git a/templates/bootstrap/admin/wallet/transactions.tpl b/templates/bootstrap/admin/wallet/transactions.tpl index f7fcdff3..63f627ca 100644 --- a/templates/bootstrap/admin/wallet/transactions.tpl +++ b/templates/bootstrap/admin/wallet/transactions.tpl @@ -22,7 +22,7 @@ {foreach key=KEY item=ARRAY from=$TRANSACTIONS} {$ARRAY['account']|default:"Default"} - {$ARRAY['address']} + {$ARRAY['address']|default:""} {$ARRAY['category']|capitalize} {$ARRAY['amount']|number_format:"$PRECISION"} {$ARRAY['confirmations']}