From 59b6d85ff21c181718a367e40bdfd1c56c2be3a2 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Mar 2011 21:39:02 +0000 Subject: fixed a bug with invisible groups - saving and display both had a problem git-svn-id: http://code.elgg.org/elgg/trunk@8592 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/groups/edit.php | 2 +- mod/groups/views/default/forms/groups/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') 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; } -- cgit v1.2.3