diff --git a/admin/check/check_api.php b/admin/check/check_api.php index 23a20522ce..21e13916e2 100644 --- a/admin/check/check_api.php +++ b/admin/check/check_api.php @@ -92,6 +92,10 @@ function check_print_error_rows() { $t_error_type = 'SYSTEM NOTICE'; $t_error_description = htmlentities( $t_error['error'] ); break; + case E_DEPRECATED: + $t_error_type = 'DEPRECATED'; + $t_error_description = htmlentities( $t_error['error'] ); + break; case E_USER_ERROR: $t_error_type = 'APPLICATION ERROR #' . $t_error['error']; $t_error_description = htmlentities( error_string( $t_error['error'] ) ); @@ -106,8 +110,8 @@ function check_print_error_rows() { $t_error_description = htmlentities( $t_error['error'] ); break; default: - # shouldn't happen, just display the error just in case - $t_error_type = ''; + # shouldn't happen, display the error just in case + $t_error_type = 'UNHANDLED ERROR TYPE ' . $t_error['type']; $t_error_description = htmlentities( $t_error['error'] ); } echo "\t\n\t\t"; @@ -177,9 +181,11 @@ function check_print_test_result( $p_result ) { */ function check_print_test_row( $p_description, $p_pass, $p_info = null ) { global $g_alternate_row, $g_show_all; - if ( !$g_show_all && $p_pass ) { + $t_unhandled = check_unhandled_errors_exist(); + if ( !$g_show_all && $p_pass && !$t_unhandled) { return $p_pass; } + echo "\t\n\t\t$p_description"; if( $p_info !== null) { if( is_array( $p_info ) && isset( $p_info[$p_pass] ) ) { @@ -211,7 +217,8 @@ function check_print_test_row( $p_description, $p_pass, $p_info = null ) { */ function check_print_test_warn_row( $p_description, $p_pass, $p_info = null ) { global $g_alternate_row, $g_show_all; - if ( !$g_show_all && $p_pass ) { + $t_unhandled = check_unhandled_errors_exist(); + if ( !$g_show_all && $p_pass && !$t_unhandled) { return $p_pass; } echo "\t\n\t\t$p_description";