aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-05 19:31:42 -0800
committerfriendica <info@friendica.com>2013-12-05 19:31:42 -0800
commit5282bf69b50497730576d35ad581b1f6b39f6a63 (patch)
tree0704c64e81bb41dba52bda05b73205e381265721
parentb3f622022608567334406475b190b315815361b3 (diff)
parent0e9df93a69b79cf50d7fe882ef0ca3f87b8fdccb (diff)
downloadvolse-hubzilla-5282bf69b50497730576d35ad581b1f6b39f6a63.tar.gz
volse-hubzilla-5282bf69b50497730576d35ad581b1f6b39f6a63.tar.bz2
volse-hubzilla-5282bf69b50497730576d35ad581b1f6b39f6a63.zip
Merge pull request #223 from zzottel/master
Make it possible to change collection visibility without changing name.
-rw-r--r--mod/group.php4
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));