Skip to content

Commit

Permalink
Do not output empty classes
Browse files Browse the repository at this point in the history
Issue #24097
  • Loading branch information
atrol committed Mar 18, 2018
1 parent d4c76f8 commit dec1d77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions account_page.php
Expand Up @@ -175,26 +175,27 @@
</tr>
<?php
$t_required = $t_force_pw_reset ? 'required' : '';
$t_class = $t_force_pw_reset ? 'class="required"' : '';
?>
<tr>
<td class="category">
<span class="<?php echo $t_required ?>"><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'current_password' ) ?>
<span <?php echo $t_class . $t_required ?>><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'current_password' ) ?>
</td>
<td>
<input class="input-sm" id="password-current" type="password" name="password_current" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" <?php echo $t_required ?> />
</td>
</tr>
<tr>
<td class="category">
<span class="<?php echo $t_required ?>"><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'new_password' ) ?>
<span <?php echo $t_class . $t_required ?>><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'new_password' ) ?>
</td>
<td>
<input class="input-sm" id="password" type="password" name="password" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" <?php echo $t_required ?> />
</td>
</tr>
<tr>
<td class="category">
<span class="<?php echo $t_required ?>"><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'confirm_password' ) ?>
<span <?php echo $t_class . $t_required ?>><?php if( $t_force_pw_reset ) { ?> * <?php } ?></span> <?php echo lang_get( 'confirm_password' ) ?>
</td>
<td>
<input class="input-sm" id="password-confirm" type="password" name="password_confirm" size="32" maxlength="<?php echo auth_get_password_max_size(); ?>" <?php echo $t_required ?> />
Expand Down

0 comments on commit dec1d77

Please sign in to comment.