From: moodler Date: Tue, 9 Sep 2003 12:10:27 +0000 (+0000) Subject: print an error if data isn't there X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=970099c973c9ef6929eda59a5a627c586c8e38e7;p=moodle.git print an error if data isn't there --- 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/");