diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/group.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/group.php b/include/group.php index ff17a726c..7ba14a49d 100644 --- a/include/group.php +++ b/include/group.php @@ -1,7 +1,7 @@ <?php /** @file */ -function group_add($uid,$name) { +function group_add($uid,$name,$public = 0) { $ret = false; if(x($uid) && x($name)) { @@ -37,10 +37,11 @@ function group_add($uid,$name) { } while($dups == true); - $r = q("INSERT INTO `group` ( hash, uid, name ) - VALUES( '%s', %d, '%s' ) ", + $r = q("INSERT INTO `group` ( hash, uid, visible, name ) + VALUES( '%s', %d, %d, '%s' ) ", dbesc($hash), intval($uid), + intval($public), dbesc($name) ); $ret = $r; |