diff --git a/admin/install.php b/admin/install.php index 39dbdd3ac8..320c522bd9 100644 --- a/admin/install.php +++ b/admin/install.php @@ -424,6 +424,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes $t_version_info = @$g_db->ServerInfo(); } else { print_test_result( BAD, true, 'Does administrative user have access to the database? ( ' . db_error_msg() . ' )' ); + $t_version_info = null; } ?> @@ -462,11 +463,14 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes Checking Database Server Version - Running ' . string_attribute( $f_db_type ) . ' version ' . nl2br( $t_version_info['description'] ); - ?> + Running ' . string_attribute( $f_db_type ) + . ' version ' . nl2br( $t_version_info['description'] ); + } +?> - + if( is_null( $t_version_info ) ) { + $t_warning = "Unable to determine '$f_db_type' version. ($t_error)."; + $t_error = ''; + } + print_test_result( + ( '' == $t_error ) && ( '' == $t_warning ), + ( '' != $t_error ), + $t_error . ' ' . $t_warning + ); +?>