bug 663: changed if statement and corrected typo bug-663
authorINOPIAE <inopiae@cacert.org>
Tue, 9 Jul 2013 21:50:43 +0000 (23:50 +0200)
committerINOPIAE <inopiae@cacert.org>
Tue, 9 Jul 2013 21:50:43 +0000 (23:50 +0200)
pages/account/13.php

index 0abfd94..1c1cfc6 100644 (file)
@@ -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 ".
   <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>
     <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>