diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-27 16:14:54 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-27 16:14:54 +0000 |
| commit | bab8904cd90d6884686755c00ab9f2e62b9d55b9 (patch) | |
| tree | cc6485b5d5a67fd7d34f099342c42d8609e3ba1a | |
| parent | cb01c597657dfc7a32fd575930a9ff9a6c007555 (diff) | |
| download | protector-bab8904cd90d6884686755c00ab9f2e62b9d55b9.tar.gz protector-bab8904cd90d6884686755c00ab9f2e62b9d55b9.tar.bz2 protector-bab8904cd90d6884686755c00ab9f2e62b9d55b9.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.
| -rwxr-xr-x | templates/protector_service_icon.tpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/protector_service_icon.tpl b/templates/protector_service_icon.tpl index 83452a5..8636356 100755 --- a/templates/protector_service_icon.tpl +++ b/templates/protector_service_icon.tpl @@ -1,14 +1,14 @@ -{if !$serviceHash and $gContent->mInfo} +{if !$serviceHash && $gContent->mInfo} {assign var=serviceHash value=$gContent->mInfo} {/if} -{if !empty($serviceHash.is_hidden) and $serviceHash.is_hidden=='y'} +{if !empty($serviceHash.is_hidden) && $serviceHash.is_hidden=='y'} {assign var=securityLabel value="Hidden"} {/if} -{if !empty($serviceHash.is_private) and $serviceHash.is_private=='y'} +{if !empty($serviceHash.is_private) && $serviceHash.is_private=='y'} {assign var=securityLabel value="Private"} {/if} -{if !empty($serviceHash.access_answer) and $serviceHash.access_answer} +{if !empty($serviceHash.access_answer) && $serviceHash.access_answer} {assign var=securityLabel value="Password Required"} {/if} {if !empty($securityLabel)} |
