Skip to content

Commit

Permalink
Fix #13684: undefined variable in admin/index.php
Browse files Browse the repository at this point in the history
Variable $t_version_suffix was referenced without initialization. It is
now set following the same logic as in html_footer().

Commit also includes whitespace corrections.
  • Loading branch information
dregad committed Dec 15, 2011
1 parent 74dc549 commit c78dfd2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions admin/index.php
Expand Up @@ -56,21 +56,26 @@ function print_info_row( $p_description, $p_value ) {
<tr>
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'install_information' ) ?></td>
</tr>
<?php
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, ( $t_version_suffix ? " $t_version_suffix" : '' ) );
<?php
if( ON == config_get( 'show_version' ) ) {
$t_version_suffix = config_get_global( 'version_suffix' );
} else {
$t_version_suffix = '';
}
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, $t_version_suffix );
print_info_row( 'php_version', phpversion());
?>
<tr>
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'database_information' ) ?></td>
</tr>
<?php
<?php
print_info_row( lang_get( 'schema_version' ), config_get( 'database_version' ) );
print_info_row( 'adodb_version', $g_db->Version() );
?>
<tr>
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'path_information' ) ?></td>
</tr>
<?php
<?php
print_info_row( lang_get( 'site_path' ), config_get( 'absolute_path' ) );
print_info_row( lang_get( 'core_path' ), config_get( 'core_path' ) );
print_info_row( lang_get( 'plugin_path' ), config_get( 'plugin_path' ) );
Expand Down

0 comments on commit c78dfd2

Please sign in to comment.