1
1
Fork 0

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 fa444f373c
commit fd0e2a9406

View file

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