Fix a couple of array index warnings in 'Handler_Public->forgotpass'

This commit is contained in:
wn_ 2021-03-17 16:30:17 +00:00
parent 541a07250c
commit baf3ecd4cf
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ class Handler_Public extends Handler {
startup_gettext();
session_start();
@$hash = clean($_REQUEST["hash"]);
$hash = clean($_REQUEST["hash"] ?? '');
header('Content-Type: text/html; charset=utf-8');
?>
@ -441,7 +441,7 @@ class Handler_Public extends Handler {
print "<h1>".__("Password recovery")."</h1>";
print "<div class='content'>";
@$method = clean($_POST['method']);
$method = clean($_POST['method'] ?? '');
if ($hash) {
$login = clean($_REQUEST["login"]);