cvs: php4 /ext/standard info.c

From: Date: Fri, 17 Jan 2003 18:07:10 +0000
Subject: cvs: php4 /ext/standard info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17974@lists.php.net to get a copy of this message
derick Fri Jan 17 13:07:10 2003 EDT Modified files: /php4/ext/standard info.c Log: - Fixed a bug that made that no newline was displayed when there was no value for a row. Index: php4/ext/standard/info.c diff -u php4/ext/standard/info.c:1.222 php4/ext/standard/info.c:1.223 --- php4/ext/standard/info.c:1.222 Sun Jan 12 09:47:18 2003 +++ php4/ext/standard/info.c Fri Jan 17 13:07:10 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.222 2003/01/12 14:47:18 sebastian Exp $ */ +/* $Id: info.c,v 1.223 2003/01/17 18:07:10 derick Exp $ */ #include "php.h" #include "php_ini.h" @@ -768,14 +768,14 @@ 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");

« previous php.cvs (#17974) next »