summaryrefslogtreecommitdiff
path: root/templates/list.tpl
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-27 16:07:32 +0000
committerlsces <lester@lsces.co.uk>2026-03-27 16:07:32 +0000
commit72312119fe678d14b61e3c508db98a6dd0ee4ec0 (patch)
treec84b946956c2c1dc82ef1c63249d9bc942747af3 /templates/list.tpl
parent8d7b90039e6459d3137bb274ccd1031b8abcbe6a (diff)
downloadcontact-72312119fe678d14b61e3c508db98a6dd0ee4ec0.tar.gz
contact-72312119fe678d14b61e3c508db98a6dd0ee4ec0.tar.bz2
contact-72312119fe678d14b61e3c508db98a6dd0ee4ec0.zip
Figured what has been causing a problem with using && and || in smarty templates and related to mistake in processing {2} elements that should use curly brackets and not revert to square ones.V5-php84
Diffstat (limited to 'templates/list.tpl')
-rwxr-xr-xtemplates/list.tpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/list.tpl b/templates/list.tpl
index 0739c01..430ad80 100755
--- a/templates/list.tpl
+++ b/templates/list.tpl
@@ -30,17 +30,17 @@
{$listcontacts[content].title}
</a>
</td>
- <td>{if isset($listcontacts[content].house) and ($listcontacts[content].house <> '') }
+ <td>{if isset($listcontacts[content].house) && ($listcontacts[content].house <> '') }
{$listcontacts[content].house},&nbsp;{/if}
- {if isset($listcontacts[content].add1) and ($listcontacts[content].add1 <> '') }
+ {if isset($listcontacts[content].add1) && ($listcontacts[content].add1 <> '') }
{$listcontacts[content].add1},&nbsp;{/if}
- {if isset($listcontacts[content].add2) and ($listcontacts[content].add2 <> '') }
+ {if isset($listcontacts[content].add2) && ($listcontacts[content].add2 <> '') }
{$listcontacts[content].add2},&nbsp;{/if}
- {if isset($listcontacts[content].add3) and ($listcontacts[content].add3 <> '') }
+ {if isset($listcontacts[content].add3) && ($listcontacts[content].add3 <> '') }
{$listcontacts[content].add3},&nbsp;{/if}
- {if isset($listcontacts[content].add4) and ($listcontacts[content].add4 <> '') }
+ {if isset($listcontacts[content].add4) && ($listcontacts[content].add4 <> '') }
{$listcontacts[content].add4},&nbsp;{/if}
- {if isset($listcontacts[content].town) and ($listcontacts[content].town <> '') }
+ {if isset($listcontacts[content].town) && ($listcontacts[content].town <> '') }
{$listcontacts[content].town},&nbsp;{/if}
{$listcontacts[content].postcode}</td>
</tr>
@@ -53,8 +53,8 @@
{tr}Addresses{/tr}: {$listcontacts[content].addresses|default:0}
</td>
{if $gBitUser->hasPermission( 'p_liberty_view_all_status' )}
- <td>{if isset($listcontacts[content].dob) and ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}{/if}</td>
- <td>{if isset($listcontacts[content].nino) and ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}{/if}</td>
+ <td>{if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}{/if}</td>
+ <td>{if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}{/if}</td>
{/if}
</tr>
{sectionelse}