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");



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to