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
4299cce719
commit
9c097c20dd
1 changed files with 13 additions and 7 deletions
|
@ -112,13 +112,19 @@ function group_content(App &$a) {
|
||||||
intval($a->argv[2]),
|
intval($a->argv[2]),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
);
|
);
|
||||||
if (dbm::is_result($r))
|
|
||||||
|
$result = null;
|
||||||
|
|
||||||
|
if (dbm::is_result($r)) {
|
||||||
$result = group_rmv(local_user(),$r[0]['name']);
|
$result = group_rmv(local_user(),$r[0]['name']);
|
||||||
if($result)
|
}
|
||||||
|
|
||||||
|
if ($result) {
|
||||||
info( t('Group removed.') . EOL);
|
info( t('Group removed.') . EOL);
|
||||||
else
|
} else {
|
||||||
notice( t('Unable to remove group.') . EOL);
|
notice( t('Unable to remove group.') . EOL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
goaway(App::get_baseurl() . '/group');
|
goaway(App::get_baseurl() . '/group');
|
||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue