X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fgroup.php;h=2b332e401f09debcbd987e2f80cb15c794bcb841;hb=fb94a0add71642b08bab610d1cfb70eab4598ffc;hp=bf9009ae0c623d25d6d226088fd27b7c7fd90c5e;hpb=20e71d21a6206c03f2137eb82edf8f8b3bc644f2;p=friendica.git diff --git a/mod/group.php b/mod/group.php index bf9009ae0c..2b332e401f 100644 --- a/mod/group.php +++ b/mod/group.php @@ -4,7 +4,7 @@ function validate_members(&$item) { $item = intval($item); } -function group_init(App &$a) { +function group_init(App $a) { if(local_user()) { require_once('include/group.php'); $a->page['aside'] = group_side('contacts','group','extended',(($a->argc > 1) ? intval($a->argv[1]) : 0)); @@ -13,7 +13,7 @@ function group_init(App &$a) { -function group_post(App &$a) { +function group_post(App $a) { if (! local_user()) { notice( t('Permission denied.') . EOL); @@ -31,8 +31,7 @@ function group_post(App &$a) { if ($r) { goaway(App::get_baseurl() . '/group/' . $r); } - } - else { + } else { notice( t('Could not create group.') . EOL ); } goaway(App::get_baseurl() . '/group'); @@ -70,7 +69,7 @@ function group_post(App &$a) { return; } -function group_content(App &$a) { +function group_content(App $a) { $change = false; if (! local_user()) { @@ -92,7 +91,7 @@ function group_content(App &$a) { '$submit' => t('Save Group'), ); - if(($a->argc == 2) && ($a->argv[1] === 'new')) { + if (($a->argc == 2) && ($a->argv[1] === 'new')) { return replace_macros($tpl, $context + array( '$title' => t('Create a group of contacts/friends.'),