]> git.mxchange.org Git - friendica.git/blobdiff - include/group.php
Degrade priority step by step
[friendica.git] / include / group.php
index dee0d30c246e090c794409f80d0c3261b9a4b7ef..ab805e68749ad80cf9de08bef527c195ef40de8b 100644 (file)
@@ -22,7 +22,7 @@ function group_add($uid,$name) {
                                        intval($uid),
                                        dbesc($name)
                                );
-                               notice( t('A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name.') . EOL); 
+                               notice( t('A deleted group with this name was revived. Existing item permissions <strong>may</strong> apply to this group and any future members. If this is not what you intended, please create another group with a different name.') . EOL);
                        }
                        return true;
                }
@@ -318,9 +318,9 @@ function expand_groups($a,$check_dead = false, $use_gcontact = false) {
 
        $ret = array();
        if (dbm::is_result($r))
-               foreach($r as $rr)
+               foreach ($r as $rr)
                        $ret[] = $rr['contact-id'];
-       if ($check_dead AND !$use_gcontact) {
+       if ($check_dead && !$use_gcontact) {
                require_once('include/acl_selectors.php');
                $ret = prune_deadguys($ret);
        }
@@ -347,8 +347,9 @@ function groups_containing($uid,$c) {
 
        $ret = array();
        if (dbm::is_result($r)) {
-               foreach($r as $rr)
+               foreach ($r as $rr) {
                        $ret[] = $rr['gid'];
+               }
        }
 
        return $ret;