diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/groups/edit.php | 2 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/edit.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/actions/groups/edit.php b/mod/groups/actions/groups/edit.php index 331c80be0..3a0376497 100644 --- a/mod/groups/actions/groups/edit.php +++ b/mod/groups/actions/groups/edit.php @@ -99,7 +99,7 @@ if ($new_group_flag) { // Invisible group support if (elgg_get_plugin_setting('hidden_groups', 'groups') == 'yes') { $visibility = (int)get_input('vis', '', false); - if ($visibility != ACCESS_PUBLIC || $visibility != ACCESS_LOGGED_IN) { + if ($visibility != ACCESS_PUBLIC && $visibility != ACCESS_LOGGED_IN) { $visibility = $group->group_acl; } diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 8b5a3c33e..1a4e95513 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -9,7 +9,7 @@ if (isset($vars['entity'])) { $membership = $vars['entity']->membership; $access = $vars['entity']->access_id; - if ($access != ACCESS_PUBLIC || ACCESS_LOGGED_IN) { + if ($access != ACCESS_PUBLIC && $access != ACCESS_LOGGED_IN) { // group only - this is done to handle access not created when group is created $access = ACCESS_PRIVATE; } |