*/
public function run() {
$urlParams = CRM_Utils_System::getCMSPermissionsUrlParams();
- if (isset($urlParams['ufAccessURL'])) {
- $this->assign('ufAccessURL', $urlParams['ufAccessURL']);
- }
- if (isset($urlParams['jAccessParams'])) {
- $this->assign('jAccessParams', $urlParams['jAccessParams']);
- }
+ $this->assign('ufAccessURL', $urlParams['ufAccessURL'] ?? NULL);
+ $this->assign('jAccessParams', $urlParams['jAccessParams'] ?? NULL);
return parent::run();
}
<td style="height: 2.6em;">
{$row.label}
- {if $row.desc}
+ {if !empty($row.desc)}
<br/><span class="description">{$row.desc}</span>
{/if}
</td>
<table class="form-layout-compressed">
<tr>
<td class="font-size12pt" style="width: 30%;">
- {if $savedSearch.name}{$savedSearch.name} ({ts}smart group{/ts}) - {/if}
+ {if !empty($savedSearch.name)}{$savedSearch.name} ({ts}smart group{/ts}) - {/if}
{ts count=$pager->_totalItems plural='%count Contacts'}%count Contact{/ts}
</td>
{/if}
{foreach from=$columnHeaders item=header}
<th scope="col">
- {if $header.sort}
+ {if !empty($header.sort)}
{assign var='key' value=$header.sort}
{$sort->_response.$key.link}
- {else}
+ {elseif !empty($header.name)}
{$header.name}
{/if}
</th>
{$row.status}</td>
{/if}
<td>{$row.contact_type}</td>
- <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{if $row.is_deleted}<del>{/if}{$row.sort_name}{if $row.is_deleted}</del>{/if}</a></td>
+ <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{if !empty($row.is_deleted)}<del>{/if}{$row.sort_name}{if !empty($row.is_deleted)}</del>{/if}</a></td>
{if $action eq 512 or $action eq 256}
{if !empty($columnHeaders.street_address)}
<td><span title="{$row.street_address|escape}">{$row.street_address|mb_truncate:22:"...":true}{privacyFlag field=do_not_mail condition=$row.do_not_mail}</span></td>
{crmButton p='civicrm/admin/custom/group/field' q="action=browse&reset=1&gid=$gid" icon="th-list"}{ts}Custom Fields for this Set{/ts}{/crmButton}
</div>
{/if}
-{$initHideBlocks}
+{if !empty($initHideBlocks)}{$initHideBlocks}{/if}
{literal}
<script type="text/Javascript">
CRM.$(function($) {
<div id="alpha-filter">
<ul>
{foreach from=$aToZ item=letter}
- <li {if $letter.class}class="{$letter.class}"{/if}>{$letter.item}</li>
+ <li {if !empty($letter.class)}class="{$letter.class}"{/if}>{$letter.item}</li>
{/foreach}
</ul>
</div>