X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fgroup.php;h=ab805e68749ad80cf9de08bef527c195ef40de8b;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=dee0d30c246e090c794409f80d0c3261b9a4b7ef;hpb=41a36606c6ee92c914acbb7f6d9ea79c0a149088;p=friendica.git diff --git a/include/group.php b/include/group.php index dee0d30c24..ab805e6874 100644 --- a/include/group.php +++ b/include/group.php @@ -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 may 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 may 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;