Commit d9716ebc authored by Johannes's avatar Johannes Committed by Johannes

Get $groupId in a single line

parent 06152949
......@@ -117,9 +117,7 @@ final class RegionXhr extends Control
public function signout(): array
{
$data = $_GET;
$groupId = (int)$data['bid'];
unset($data);
$groupId = (int)$_GET['bid'];
if ($this->session->mayBezirk($groupId)) {
$this->foodsaverGateway->deleteFromRegion($groupId, $this->session->id());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment