X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fgroup.php;h=a2a55c44403b61f69f31e54d245e1f7507fba878;hb=b69d82e64c8a0622823b99d0b8754a213a989dd1;hp=2c903306864da2caa1ef4368212faffb6c016c43;hpb=ff569756ee6c5e058700cf6428918f059525e77c;p=friendica.git diff --git a/include/group.php b/include/group.php index 2c90330686..a2a55c4440 100644 --- a/include/group.php +++ b/include/group.php @@ -143,13 +143,14 @@ function group_add_member($uid,$name,$member,$gid = 0) { return true; // You might question this, but // we indicate success because the group member was in fact created // -- It was just created at another time - if(! dbm::is_result($r)) + if (! dbm::is_result($r)) { $r = q("INSERT INTO `group_member` (`uid`, `gid`, `contact-id`) VALUES( %d, %d, %d ) ", intval($uid), intval($gid), intval($member) - ); + ); + } return $r; } @@ -233,7 +234,7 @@ function group_side($every="contacts",$each="group",$editmode = "standard", $gro $o = ''; - if(! local_user()) + if (! local_user()) return ''; $groups = array();