added curly braces + space between "if" and brace
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
40dc3774e4
commit
6ab84bf520
1 changed files with 10 additions and 5 deletions
|
@ -28,14 +28,17 @@ function group_post(&$a) {
|
||||||
if($r) {
|
if($r) {
|
||||||
info( t('Group created.') . EOL );
|
info( t('Group created.') . EOL );
|
||||||
$r = group_byname(local_user(),$name);
|
$r = group_byname(local_user(),$name);
|
||||||
if($r)
|
if ($r) {
|
||||||
goaway(App::get_baseurl() . '/group/' . $r);
|
goaway(App::get_baseurl() . '/group/' . $r);
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
notice( t('Could not create group.') . EOL );
|
notice( t('Could not create group.') . EOL );
|
||||||
|
}
|
||||||
goaway(App::get_baseurl() . '/group');
|
goaway(App::get_baseurl() . '/group');
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($a->argc == 2) && (intval($a->argv[1]))) {
|
if (($a->argc == 2) && (intval($a->argv[1]))) {
|
||||||
check_form_security_token_redirectOnErr('/group', 'group_edit');
|
check_form_security_token_redirectOnErr('/group', 'group_edit');
|
||||||
|
|
||||||
|
@ -56,9 +59,11 @@ function group_post(&$a) {
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
intval($group['id'])
|
intval($group['id'])
|
||||||
);
|
);
|
||||||
if($r)
|
|
||||||
|
if ($r) {
|
||||||
info( t('Group name changed.') . EOL );
|
info( t('Group name changed.') . EOL );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$a->page['aside'] = group_side();
|
$a->page['aside'] = group_side();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue