derick Fri Jan 17 13:12:39 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard info.c
Log:
- MFH: 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.218.2.2 php4/ext/standard/info.c:1.218.2.3
--- php4/ext/standard/info.c:1.218.2.2 Tue Dec 31 11:35:29 2002
+++ php4/ext/standard/info.c Fri Jan 17 13:12:38 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.218.2.2 2002/12/31 16:35:29 sebastian Exp $ */
+/* $Id: info.c,v 1.218.2.3 2003/01/17 18:12:38 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");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php