Skip to content

Commit 0e26284

Browse files
Add intval to required field to force same type comparison
1 parent 0b93ec3 commit 0e26284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/setup_page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function ( $ele ) {
300300
<tr valign="top">
301301
<td><?php echo esc_html( $mv_var['name'] ); ?></td>
302302
<td><?php echo esc_html( $mv_var['tag'] ); ?></td>
303-
<td><?php echo esc_html( ( 1 === $mv_var['required'] ) ? 'Y' : 'N' ); ?></td>
303+
<td><?php echo esc_html( ( 1 === intval( $mv_var['required'] ) ) ? 'Y' : 'N' ); ?></td>
304304
<td>
305305
<?php
306306
if ( ! $mv_var['required'] ) {

0 commit comments

Comments
 (0)