Skip to content

Commit

Permalink
Check if disableRoles are null (#8)
Browse files Browse the repository at this point in the history
* #7 Check if disableRoles are null

* #7 Check if disableRoles are null
  • Loading branch information
withanage authored Oct 14, 2022
1 parent 30260cf commit fa4cb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/settings.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{/fbvFormSection}
{fbvFormSection label="plugins.generic.controlPublicFiles.setting.disableRoles" for="disableRoles" list=true}
{foreach from=$roles key=$roleId item=$role}
{if in_array($roleId, $disableRoles)}
{if $disableRoles && in_array($roleId, $disableRoles)}
{assign var="checked" value=true}
{else}
{assign var="checked" value=false}
Expand Down

0 comments on commit fa4cb48

Please sign in to comment.