Simplified null check

This commit is contained in:
Michael 2021-05-12 12:40:45 +00:00
parent 4a6d33e182
commit 8a5560ec8f
7 changed files with 14 additions and 14 deletions

View file

@ -36,7 +36,7 @@ class Authorize extends BaseApi
*/
public static function rawContent(array $parameters = [])
{
$response_type = !isset($_REQUEST['response_type']) ? '' : $_REQUEST['response_type'];
$response_type = $_REQUEST['response_type'] ?? '';
if ($response_type != 'code') {
Logger::warning('Wrong or missing response type', ['response_type' => $response_type]);
DI::mstdnError()->RecordNotFound();