summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-07-09 23:50:43 +0200
committerINOPIAE <inopiae@cacert.org>2013-07-09 23:50:43 +0200
commit60d9c34c385d47463ce0dc729f8a5e9857752b58 (patch)
tree1b73fcfee97a4927c05c6c3f45858ac7e170ea85
parent5f3c22a2e6edbeedd735b917dc069008d0aa77a3 (diff)
downloadcacert-devel-bug-663.tar.gz
cacert-devel-bug-663.tar.xz
cacert-devel-bug-663.zip
bug 663: changed if statement and corrected typobug-663
-rw-r--r--pages/account/13.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/account/13.php b/pages/account/13.php
index 0abfd94..1c1cfc6 100644
--- a/pages/account/13.php
+++ b/pages/account/13.php
@@ -24,7 +24,7 @@
$month = intval(substr($user['dob'], 5, 2));
$day = intval(substr($user['dob'], 8, 2));
$showdetails = array_key_exists('showdetails', $_REQUEST) && !!intval($_REQUEST['showdetails']);
- if($showdetails == 1){
+ if($showdetails){
$body = sprintf(_("Hi %s,"),$user['fname'])."\n\n";
$body .= _("You receive this automatic mail since you yourself or someone ".
"else looked up your secret questions and answers for a forgotten ".
@@ -125,7 +125,7 @@
<tr>
<td colspan="2" class="title"><a href="account.php?id=13&amp;showdetails=<?=!$showdetails?>"><?=_("View secret question & answers and OTP phrases")?></a></td>
</tr>
- <? if($showdetails == 1){ ?>
+ <? if($showdetails){ ?>
<tr>
<td class="DataTD"><?=_("OTP Hash")?><br>
(<?=_("Not displayed")?>)</td>
@@ -160,7 +160,7 @@
<td class="DataTD"><input type="text" name="A5" value="<?=sanitizeHTML($user['A5'])?>"></td>
</tr>
<tr>
- < ?} ?>
+ <? } ?>
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
</tr>
</table>