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 Login extends BaseModule
{
public static function content(array $parameters = [])
{
$return_path = !isset($_REQUEST['return_path']) ? '' : $_REQUEST['return_path'];
$return_path = $_REQUEST['return_path'] ?? '' ;
if (local_user()) {
DI::baseUrl()->redirect($return_path);