]> git.mxchange.org Git - friendica.git/blobdiff - include/group.php
added much more curly braces + space between "if" and brace
[friendica.git] / include / group.php
index 2c903306864da2caa1ef4368212faffb6c016c43..a2a55c44403b61f69f31e54d245e1f7507fba878 100644 (file)
@@ -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();