summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-02-26 16:40:15 +0100
committerDerek Jones <derek.jones@ellislab.com>2008-02-26 16:40:15 +0100
commit964366de070c20636d9037ff06d98081b9d1b0cc (patch)
treef91b0c3d297a573300a9a407b4223f73bdafebf9
parentaf368e1f1a776247b10c4ae25d879b6e6afadfe0 (diff)
changed conditional for empty cells to not match on variables that would be loosely cast as an empty string
-rw-r--r--system/libraries/Table.php2
-rw-r--r--user_guide/changelog.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php
index d1c525486..439fe2ef9 100644
--- a/system/libraries/Table.php
+++ b/system/libraries/Table.php
@@ -261,7 +261,7 @@ class CI_Table {
{
$out .= $this->template['cell_'.$name.'start'];
- if ($cell == "")
+ if ($cell === "")
{
$out .= $this->empty_cells;
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index e93088cdf..3cf2ea8d9 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -70,6 +70,7 @@ Change Log
<li>Fixed assorted user guide typos (#3453)</li>
<li>Fixed an AR_caching error where it wasn't tracking table aliases (#3463)</li>
<li>Fixed a bug in the DB class testing the $params argument</li>
+ <li>Fixed a bug in the Table library where the integer 0 in cell data would be displayed as a blank cell.</li>
</ul>
<h2>Version 1.6.1</h2>
<p>Release Date: February 12, 2008</p>