summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-09-12 16:40:32 +0100
committerlsces <lester@lsces.co.uk>2025-09-12 16:40:32 +0100
commitcb01c597657dfc7a32fd575930a9ff9a6c007555 (patch)
treeb8ebca8b5856671cab40679c5ff270afbf4c21d0 /templates
parent6354daa965bae825ac3007be6dcdc518ed212428 (diff)
downloadprotector-cb01c597657dfc7a32fd575930a9ff9a6c007555.tar.gz
protector-cb01c597657dfc7a32fd575930a9ff9a6c007555.tar.bz2
protector-cb01c597657dfc7a32fd575930a9ff9a6c007555.zip
PHP8.4 style fixes to make role selection work
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/choose_protection.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/choose_protection.tpl b/templates/choose_protection.tpl
index 9084600..81bfbd5 100755
--- a/templates/choose_protection.tpl
+++ b/templates/choose_protection.tpl
@@ -4,12 +4,12 @@
{forminput}
{if $gBitSystem->isFeatureActive( 'protector_single_role' )}
Assign content to the following user role:<br/>
- {html_options name="$protector[role_id]" options=$protectorRolesId selected=$serviceHash.protector.role_id}
+ {html_options name="protector[role_id]" options=$protectorRolesId selected=$serviceHash.protector.role_id}
{formhelp note="Users assigned to this role can view this content item."}
{else}
Limit access to the following user roles:<br/>
{foreach from=$protectorRoles key=roleId item=role}
- <input type="checkbox" name="$protector[role_id][]" value="{$roleId}" {if isset($serviceHash.protector.role.$roleId)}checked="checked"{/if} /> {$role.role_name}<br/>
+ <input type="checkbox" name="protector[role_id][]" value="{$roleId}" {if isset($serviceHash.protector.role.$roleId)}checked="checked"{/if} /> {$role.role_name}<br/>
{/foreach}
{formhelp note="Users assigned to these roles can view this content item."}
{/if}