summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-03-17 16:30:17 +0000
committerwn_ <[email protected]>2021-03-17 16:30:17 +0000
commitbaf3ecd4cff13c69b2243ef06a56606773de3ed5 (patch)
treed8b663b72b4f10885809c9a4df3d88b69ff52406 /classes/handler/public.php
parent541a07250ce535ddac4402ddccb60e7e90513c2b (diff)
Fix a couple of array index warnings in 'Handler_Public->forgotpass'
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index fc3a6818c..f9d118999 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -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"]);