Merge pull request #6126 from annando/notice-return-path

Fixes notice "PHP Notice:  Undefined index: return_path"
This commit is contained in:
Hypolite Petovan 2018-11-13 13:58:10 -05:00 committed by GitHub
commit e6557ca9c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Login extends BaseModule
$a->internalRedirect();
}
return self::form($_SESSION['return_path'], intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
return self::form(defaults($_SESSION, 'return_path', null), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
}
public static function post()