summaryrefslogtreecommitdiff
path: root/pages/account/13.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-02-04 15:58:59 +0100
committerMichael Tänzer <neo@nhng.de>2014-02-04 15:58:59 +0100
commitaa325469783363f865665ec7e8cfe24e1157059f (patch)
tree4955d6de9ef5893aa5789a3907aeb39ce14b2d28 /pages/account/13.php
parentf8191d4deddadd7a542007af471157183aa6660e (diff)
downloadcacert-devel-aa325469783363f865665ec7e8cfe24e1157059f.tar.gz
cacert-devel-aa325469783363f865665ec7e8cfe24e1157059f.tar.xz
cacert-devel-aa325469783363f865665ec7e8cfe24e1157059f.zip
Source code taken from cacert-20140115.tar.bz2
Diffstat (limited to 'pages/account/13.php')
-rw-r--r--pages/account/13.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/account/13.php b/pages/account/13.php
index 1c1cfc6..08f325d 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,6 +161,7 @@
<td class="DataTD"><input type="text" name="A5" value="<?=sanitizeHTML($user['A5'])?>"></td>
</tr>
<tr>
+ <input type="hidden" name="showdetails" value="1" />
<? } ?>
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
</tr>