From 970099c973c9ef6929eda59a5a627c586c8e38e7 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 9 Sep 2003 12:10:27 +0000 Subject: [PATCH] print an error if data isn't there --- login/confirm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/login/confirm.php b/login/confirm.php index ab5a3806a8..cbc3e391bc 100644 --- a/login/confirm.php +++ b/login/confirm.php @@ -3,7 +3,7 @@ require_once("../config.php"); require_once("../auth/$CFG->auth/lib.php"); - if ( isset($p) and isset($s) ) { # p = user.secret s = user.username + if (isset($_GET['p']) and isset($_GET['s']) ) { # p = user.secret s = user.username $user = get_user_info_from_db("username", "$s"); @@ -60,6 +60,8 @@ error("Invalid confirmation data"); } } + } else { + error(get_string("errorwhenconfirming")); } redirect("$CFG->wwwroot/"); -- 2.39.5