From 964366de070c20636d9037ff06d98081b9d1b0cc Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 26 Feb 2008 15:40:15 +0000 Subject: changed conditional for empty cells to not match on variables that would be loosely cast as an empty string --- system/libraries/Table.php | 2 +- user_guide/changelog.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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
  • Fixed assorted user guide typos (#3453)
  • Fixed an AR_caching error where it wasn't tracking table aliases (#3463)
  • Fixed a bug in the DB class testing the $params argument
  • +
  • Fixed a bug in the Table library where the integer 0 in cell data would be displayed as a blank cell.
  • Version 1.6.1

    Release Date: February 12, 2008

    -- cgit v1.2.3-24-g4f1b