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

ext/standard/info.c

index d168792fc3627b6ca0ec99053ca0f9ce7044ad63..12cad0e948c6efd8c6dee50b77ead50241280127 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");