summaryrefslogtreecommitdiff
path: root/pages/account
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-01-08 01:00:27 +0100
committerINOPIAE <inopiae@cacert.org>2014-01-08 01:00:27 +0100
commit3a661bf6297eca0f571ab807751311a755739d74 (patch)
tree7d13060d3c50be932a06c4111571cdeae17e4ecc /pages/account
parent3855113d680a590549c18a16b55d5ce8bc46d4d0 (diff)
downloadcacert-devel-3a661bf6297eca0f571ab807751311a755739d74.tar.gz
cacert-devel-3a661bf6297eca0f571ab807751311a755739d74.tar.xz
cacert-devel-3a661bf6297eca0f571ab807751311a755739d74.zip
bug 1236: Corrected showdetail handling
Diffstat (limited to 'pages/account')
-rw-r--r--pages/account/13.php6
1 files changed, 4 insertions, 2 deletions
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 @@
<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>
</table>