From 70a09811ece241db985eb5c9457b444c152789f4 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 24 Jan 2014 11:29:19 +0100 Subject: [PATCH] [FIX] PHP Notice on Mobile Template --- .../templates/mobile/statistics/pool/contributors_hashrate.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mobile/statistics/pool/contributors_hashrate.tpl b/public/templates/mobile/statistics/pool/contributors_hashrate.tpl index e02c50fa..a4c50294 100644 --- a/public/templates/mobile/statistics/pool/contributors_hashrate.tpl +++ b/public/templates/mobile/statistics/pool/contributors_hashrate.tpl @@ -13,7 +13,7 @@ {assign var=listed value=0} {section contrib $CONTRIBHASHES} {math assign="estday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate} - {if $GLOBAL.userdata.username == $CONTRIBSHARES[contrib].account}{assign var=listed value=1}{/if} + {if $GLOBAL.userdata.username|default:"" == $CONTRIBSHARES[contrib].account}{assign var=listed value=1}{/if} {$rank++} {if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}