X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FGroup.php;h=d8d5fb1c592086e9e2574fb246fbdf8eb08a5992;hb=b5a9a1f1d312b50631c2f8b35807f74116d912a8;hp=eb1389d799e33d5c27d2d15f1264306ba0dd5cba;hpb=07ba1b200c67ce4e4104ff1902c901c0abe8b4f8;p=friendica.git diff --git a/src/Module/Group.php b/src/Module/Group.php index eb1389d799..d8d5fb1c59 100644 --- a/src/Module/Group.php +++ b/src/Module/Group.php @@ -137,7 +137,7 @@ class Group extends BaseModule $change = false; if (!local_user()) { - System::httpExit(403); + throw new \Friendica\Network\HTTPException\ForbiddenException(); } $a = self::getApp(); @@ -176,7 +176,9 @@ class Group extends BaseModule $nogroup = false; - if (($a->argc == 2) && ($a->argv[1] === 'none')) { + // @TODO: Replace with parameter from router + if (($a->argc == 2) && ($a->argv[1] === 'none') || + ($a->argc == 1) && ($a->argv[0] === 'nogroup')) { $id = -1; $nogroup = true; $group = [ @@ -276,7 +278,7 @@ class Group extends BaseModule } if (!isset($group)) { - System::httpExit(400); + throw new \Friendica\Network\HTTPException\BadRequestException(); } $groupeditor = [