Small change to pear-format-html.php
| From: | Tobias Schlitt | Date: | Sun, 25 Apr 2004 18:19:27 +0000 |
| Subject: | Small change to pear-format-html.php | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2162@lists.php.net to get a copy of this message | ||
Hi all!
I would like to commit the following little patch. I tested the whole web
localy and did not find any errors, but maybe one of you knows a point where
this little change has a huge error potential.
Anyway, this would enable you to show the string "0" in a table cell.
<snip>
Index: pear-format-html.php
===================================================================
RCS file: /repository/pearweb/include/pear-format-html.php,v
retrieving revision 1.91
diff -u -r1.91 pear-format-html.php
--- pear-format-html.php 24 Apr 2004 19:29:56 -0000 1.91
+++ pear-format-html.php 25 Apr 2004 18:12:11 -0000
@@ -388,7 +388,7 @@
for ($j = 0; $j < $this->cols-1; $j++) {
print "$i <td style=\"vertical-align: top;
background-color: #E8E8E8\">";
$data = @func_get_arg($j + 1);
- if (empty($data)) {
+ if (!isset($data)) {
print " ";
} else {
print $data;
</snip>
Regards,
Toby
--
Tobias Schlitt
a passion for php http://www.schlitt.info