]> granicus.if.org Git - php/commitdiff
- MFH: Fixed a bug that made that no newline was displayed when there was no
authorDerick Rethans <derick@php.net>
Fri, 17 Jan 2003 18:12:38 +0000 (18:12 +0000)
committerDerick Rethans <derick@php.net>
Fri, 17 Jan 2003 18:12:38 +0000 (18:12 +0000)
  value for a row.

ext/standard/info.c

index 36adf9b9733aa3df8028c8506ee555996b272af5..67255c36469e6b6a5fdd8e987b67319bf40e5cdd 100644 (file)
@@ -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(" </td>");
-               }       
+               } else if (i == (num_cols - 1)) {
+                       PUTS("\n");
+               }
        }
        if (PG(html_errors)) {
                php_printf("</tr>\n");