diff options
author | friendica <info@friendica.com> | 2013-12-05 20:40:51 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-05 20:40:51 -0800 |
commit | fefdd24b2c94c34810eecb3b7c4308b251af2c54 (patch) | |
tree | 4afdab8346b57089ebe195d45445b4f26985b4d4 /mod | |
parent | 7ae371d2865c063144490fbd6e1097f90c75eaf3 (diff) | |
parent | 5282bf69b50497730576d35ad581b1f6b39f6a63 (diff) | |
download | volse-hubzilla-fefdd24b2c94c34810eecb3b7c4308b251af2c54.tar.gz volse-hubzilla-fefdd24b2c94c34810eecb3b7c4308b251af2c54.tar.bz2 volse-hubzilla-fefdd24b2c94c34810eecb3b7c4308b251af2c54.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'mod')
-rw-r--r-- | mod/group.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/group.php b/mod/group.php index 46386be0d..5a34ab6fb 100644 --- a/mod/group.php +++ b/mod/group.php @@ -49,7 +49,7 @@ function group_post(&$a) { $groupname = notags(trim($_POST['groupname'])); $public = intval($_POST['public']); - if((strlen($groupname)) && ($groupname != $group['name'])) { + if((strlen($groupname)) && (($groupname != $group['name']) || ($public != $group['visible']))) { $r = q("UPDATE `group` SET `name` = '%s', visible = %d WHERE `uid` = %d AND `id` = %d LIMIT 1", dbesc($groupname), intval($public), @@ -57,7 +57,7 @@ function group_post(&$a) { intval($group['id']) ); if($r) - info( t('Collection name changed.') . EOL ); + info( t('Collection updated.') . EOL ); } goaway(z_root() . '/group/' . argv(1) . '/' . argv(2)); |