Commit 85c334d8 authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells

Fixing issue with forgotpass and older php versions (Bug #1472443)

Change-Id: Ifc06de12c5714b26b4705ec5d495601c4ccce437
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 31c22483)
parent 2b9eb0f3
......@@ -18,7 +18,7 @@ define('SECTION_PAGE', 'forgotpass');
require('init.php');
require_once('pieforms/pieform.php');
if (!empty($SESSION->get('pwchangerequested'))) {
if ($SESSION->get('pwchangerequested')) {
$SESSION->set('pwchangerequested', false);
die_info(get_string('pwchangerequestsent'));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment