From: Derick Rethans Date: Fri, 17 Jan 2003 18:07:10 +0000 (+0000) Subject: - Fixed a bug that made that no newline was displayed when there was no value X-Git-Tag: PHP_5_0_dev_before_13561_fix~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cce2ffed8af8e0a5cb44fe47142871fd37f55c27;p=php - 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 d168792fc3..12cad0e948 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");