{if $header.sort}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
- {else}
+ {elseif (!empty($header.name))}
{$header.name}
{/if}
</th>
<a class="nowrap bold crm-expand-row" title="{ts}view payments{/ts}" href="{crmURL p='civicrm/payment' q="view=transaction&component=contribution&action=browse&cid=`$row.contact_id`&id=`$row.contribution_id`&selector=1"}">
{$row.total_amount|crmMoney:$row.currency}
</a>
- {if $row.amount_level }<br/>({$row.amount_level}){/if}
+ {if !empty($row.amount_level) }<br/>({$row.amount_level}){/if}
{if $row.contribution_recur_id && $row.is_template}
<br/>{ts}(Recurring Template){/ts}
{elseif $row.contribution_recur_id }
{/if}
</td>
{else}
- {if $column.type == 'date'}
+ {if isset($column.type) && $column.type == 'date'}
<td class="crm-contribution-{$columnName}">
{$row.$columnName|crmDate}
</td>