function onEndGroupSaveForm(GroupAction $action)
{
$gps = null;
+ $group = $action->getGroup();
- if (!empty($action->getGroup())) {
- $gps = Group_privacy_settings::getKV('group_id', $action->getGroup()->id);
+ if ($group instanceof User_group) {
+ $gps = Group_privacy_settings::getKV('group_id', $group->id);
}
$orig = null;