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:
Roland Häder 2016-12-20 11:21:32 +01:00
parent 757a0c76f0
commit beca51bfba

View file

@ -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
} }