diff options
author | Mario <mario@mariovavti.com> | 2022-01-28 20:03:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-28 20:03:30 +0000 |
commit | 755076a8e55b734c8921418a829517ef5e07b52e (patch) | |
tree | ef341ce525f8ad887a85f31bac71a7782b8857da /Zotlabs/Module/Admin/Site.php | |
parent | c2e21e837f3d3449a44e976bc6192863ba7e75d7 (diff) | |
parent | b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010 (diff) | |
download | volse-hubzilla-755076a8e55b734c8921418a829517ef5e07b52e.tar.gz volse-hubzilla-755076a8e55b734c8921418a829517ef5e07b52e.tar.bz2 volse-hubzilla-755076a8e55b734c8921418a829517ef5e07b52e.zip |
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Module/Admin/Site.php')
-rw-r--r-- | Zotlabs/Module/Admin/Site.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Module/Admin/Site.php b/Zotlabs/Module/Admin/Site.php index 00095187d..f6e3ab12b 100644 --- a/Zotlabs/Module/Admin/Site.php +++ b/Zotlabs/Module/Admin/Site.php @@ -340,10 +340,13 @@ class Site { $discover_tab = (1 - $discover_tab); $perm_roles = \Zotlabs\Access\PermissionRoles::channel_roles(); - $default_role = get_config('system','default_permissions_role','personal'); + $default_role = get_config('system', 'default_permissions_role', 'personal'); - $role = array('permissions_role' , t('Default permission role for new accounts'), $default_role, t('This role will be used for the first channel created after registration.'),$perm_roles); + if (!in_array($default_role, array_keys($perm_roles))) { + $default_role = 'personal'; + } + $role = array('permissions_role' , t('Default permission role for new accounts'), $default_role, t('This role will be used for the first channel created after registration.'),$perm_roles); $homelogin = get_config('system','login_on_homepage'); $enable_context_help = get_config('system','enable_context_help'); |