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
1 changed files with 13 additions and 7 deletions

View File

@ -112,13 +112,19 @@ function group_content(App &$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
}