summaryrefslogtreecommitdiff
path: root/pages/account
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-01-15 00:06:56 +0100
committerMichael Tänzer <neo@nhng.de>2014-01-15 00:06:56 +0100
commit9064664ed906768c99529a5144ee2bdb91123804 (patch)
tree8ab022b3f21531f36be9880ca7cc0b31857e72e1 /pages/account
parent7d088a2e2b1bd6ecb88bcf469c5891fc1f22a467 (diff)
parent0fcd48bf0d49724ac747f00c0990e157df64b584 (diff)
downloadcacert-devel-9064664ed906768c99529a5144ee2bdb91123804.tar.gz
cacert-devel-9064664ed906768c99529a5144ee2bdb91123804.tar.xz
cacert-devel-9064664ed906768c99529a5144ee2bdb91123804.zip
Merge remote-tracking branch 'origin/bug-1236' into release
Diffstat (limited to 'pages/account')
-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>