[FIX] Catch edgecase PHP warning
This commit is contained in:
parent
33f402ad80
commit
14c77ea7db
@ -34,7 +34,7 @@
|
|||||||
<td class="text-right">{$BLOCKSFOUND[block].estshares|number_format}</td>
|
<td class="text-right">{$BLOCKSFOUND[block].estshares|number_format}</td>
|
||||||
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
|
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
|
{if estshares > 0 }{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}{else}{assign var=percentage value="0"}{/if}
|
||||||
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
|
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
<td class="text-right">{$BLOCKSFOUND[block].estshares|number_format}</td>
|
<td class="text-right">{$BLOCKSFOUND[block].estshares|number_format}</td>
|
||||||
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
|
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
|
{if estshares > 0 }{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}{else}{assign var=percentage value="0"}{/if}
|
||||||
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
|
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user