Changeset 280

Show
Ignore:
Timestamp:
12/11/07 07:25:32 (13 years ago)
Author:
ralle030583
Message:

- fix division trough 0 error in kill_detail.tpl Damage Done percent value

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/templates/kill_detail.tpl

    r279 r280  
    3838                </tr> 
    3939                <tr class={cycle name=ccl}> 
    40                     <td colspan=2 class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">Damage done:</td><td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">{$i.damageDone|number_format} ({$i.damageDone/$VictimDamageTaken*100|number_format}%)</td> 
     40                    <td colspan=2 class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">Damage done:</td><td class=kb-table-cell style="padding-top: 1px; padding-bottom: 1px;">{$i.damageDone|number_format} {if $VictimDamageTaken > 0}({$i.damageDone/$VictimDamageTaken*100|number_format}%){/if}</td> 
    4141                </tr> 
    4242{/foreach}