From: Derick Rethans Date: Fri, 17 Jan 2003 18:12:38 +0000 (+0000) Subject: - MFH: Fixed a bug that made that no newline was displayed when there was no X-Git-Tag: PHP_4_3_before_13561_fix~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb8f7cceadcf817d3582884723268c07b8d8a380;p=php - MFH: Fixed a bug that made that no newline was displayed when there was no value for a row. --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 36adf9b973..67255c3646 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -768,14 +768,14 @@ PHPAPI void php_info_print_table_row(int num_cols, ...) PUTS(row_element); if (i < num_cols-1) { PUTS(" => "); - } else { - PUTS("\n"); } } } if (PG(html_errors)) { php_printf(" "); - } + } else if (i == (num_cols - 1)) { + PUTS("\n"); + } } if (PG(html_errors)) { php_printf("\n");