added curly braces + space between "if" and brace + initialized $result (was only within if() block but not outside of it)
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
fa444f373c
commit
fd0e2a9406
1 changed files with 13 additions and 7 deletions
|
@ -112,13 +112,19 @@ function group_content(&$a) {
|
|||
intval($a->argv[2]),
|
||||
intval(local_user())
|
||||
);
|
||||
if (dbm::is_result($r))
|
||||
|
||||
$result = null;
|
||||
|
||||
if (dbm::is_result($r)) {
|
||||
$result = group_rmv(local_user(),$r[0]['name']);
|
||||
if($result)
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
info( t('Group removed.') . EOL);
|
||||
else
|
||||
} else {
|
||||
notice( t('Unable to remove group.') . EOL);
|
||||
}
|
||||
}
|
||||
goaway(App::get_baseurl() . '/group');
|
||||
// NOTREACHED
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue