From cce2ffed8af8e0a5cb44fe47142871fd37f55c27 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 17 Jan 2003 18:07:10 +0000 Subject: [PATCH] - Fixed a bug that made that no newline was displayed when there was no value for a row. --- ext/standard/info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.50.1