From 97fb16eb329f33be1ae52b0556757a796fedd314 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 1 Mar 2014 22:49:01 +0100 Subject: [PATCH] [FIX] PHP Notices on Prop/PPLNS change on Reports page --- public/templates/bootstrap/statistics/round/default.tpl | 2 +- .../bootstrap/statistics/round/pplns_round_shares.tpl | 2 +- .../bootstrap/statistics/round/pplns_transactions.tpl | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/templates/bootstrap/statistics/round/default.tpl b/public/templates/bootstrap/statistics/round/default.tpl index a231928e..61507860 100755 --- a/public/templates/bootstrap/statistics/round/default.tpl +++ b/public/templates/bootstrap/statistics/round/default.tpl @@ -16,4 +16,4 @@ {include file="statistics/round/block_stats.tpl"} {include file="statistics/round/round_shares.tpl"} -{/if} \ No newline at end of file +{/if} diff --git a/public/templates/bootstrap/statistics/round/pplns_round_shares.tpl b/public/templates/bootstrap/statistics/round/pplns_round_shares.tpl index 881bd9d6..8d9a1963 100755 --- a/public/templates/bootstrap/statistics/round/pplns_round_shares.tpl +++ b/public/templates/bootstrap/statistics/round/pplns_round_shares.tpl @@ -7,7 +7,7 @@
- + diff --git a/public/templates/bootstrap/statistics/round/pplns_transactions.tpl b/public/templates/bootstrap/statistics/round/pplns_transactions.tpl index e47508a8..78292387 100755 --- a/public/templates/bootstrap/statistics/round/pplns_transactions.tpl +++ b/public/templates/bootstrap/statistics/round/pplns_transactions.tpl @@ -26,8 +26,8 @@ - - + {assign var=percentage1 value=0} @@ -39,4 +39,4 @@ - \ No newline at end of file +
Rank User Name Valid{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format} {if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|number_format:"2"}{else}0.00{/if} {$PPLNSROUNDSHARES[txs].pplns_valid|number_format|default:"0"}{if $PPLNSROUNDSHARES[txs].pplns_valid > 0 }{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"|default:"0"}{else}0{/if}{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 && $PPLNSROUNDSHARES[txs].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if} + {if $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" > 0 }{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"|default:"0"}{else}0{/if}{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|default:"0" > 0 && $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" > 0}{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if} {$percentage1|number_format:"2"} {$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}