From 3a661bf6297eca0f571ab807751311a755739d74 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Wed, 8 Jan 2014 01:00:27 +0100 Subject: bug 1236: Corrected showdetail handling --- includes/account.php | 2 +- pages/account/13.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/account.php b/includes/account.php index 5f5e680..36793f0 100644 --- a/includes/account.php +++ b/includes/account.php @@ -26,7 +26,7 @@ $oldid = array_key_exists("oldid",$_REQUEST) ? intval($_REQUEST['oldid']) : 0; $process = array_key_exists("process",$_REQUEST) ? $_REQUEST['process'] : ""; // $showdetalis refers to Secret Question and Answers from account/13.php - $showdetails = array_key_exists("showdetails",$_REQUEST) ? $_REQUEST['showdetails'] : ""; + $showdetails = array_key_exists("showdetails",$_REQUEST) ? intval($_REQUEST['showdetails']) : 0; $cert = array_key_exists('cert',$_REQUEST) ? intval($_REQUEST['cert']) : 0; $orgid = array_key_exists('orgid',$_REQUEST) ? intval($_REQUEST['orgid']) : 0; diff --git a/pages/account/13.php b/pages/account/13.php index 1c1cfc6..969d4b9 100644 --- a/pages/account/13.php +++ b/pages/account/13.php @@ -23,7 +23,8 @@ $year = intval(substr($user['dob'], 0, 4)); $month = intval(substr($user['dob'], 5, 2)); $day = intval(substr($user['dob'], 8, 2)); - $showdetails = array_key_exists('showdetails', $_REQUEST) && !!intval($_REQUEST['showdetails']); + $showdetails = array_key_exists("showdetails",$_REQUEST) ? intval($_REQUEST['showdetails']) : 0; + if($showdetails){ $body = sprintf(_("Hi %s,"),$user['fname'])."\n\n"; $body .= _("You receive this automatic mail since you yourself or someone ". @@ -160,7 +161,8 @@ - + + } ?> "> -- cgit v1.2.1