Skip to content

Commit 8991cf9

Browse files
committedDec 15, 2011
Consistent initialization of $t_version_suffix
Variable $t_version_suffix was not initialized in the same manner in admin/index.php as in html_footer(). Affects #13684
1 parent f310ad9 commit 8991cf9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎admin/index.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@ function print_info_row( $p_description, $p_value ) {
5656
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'install_information' ) ?></td>
5757
</tr>
5858
<?php
59-
$t_version_suffix = config_get_global( 'version_suffix' );
60-
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, ( $t_version_suffix ? " $t_version_suffix" : '' ) );
59+
if( ON == config_get( 'show_version' ) ) {
60+
$t_version_suffix = config_get_global( 'version_suffix' );
61+
} else {
62+
$t_version_suffix = '';
63+
}
64+
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, $t_version_suffix );
6165
print_info_row( 'php_version', phpversion());
6266
?>
6367
<tr>

0 commit comments

Comments
 (0)
Please sign in to comment.