summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-06 03:02:41 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-06 03:02:41 +0200
commitbe8ec803cf8542acca9d2dd24c46b219fecabd9c (patch)
treed3cb781c01f93eb3038a33b53d45c6577819137a
parentff390bdb457dbcfb5ba3e95323bce5f4a2c17497 (diff)
Fixed a bug in the table library that could cause identically constructed rows to be dropped (#3459).
-rw-r--r--system/libraries/Table.php3
-rw-r--r--user_guide/changelog.html3
2 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php
index 38affa579..01b490a5d 100644
--- a/system/libraries/Table.php
+++ b/system/libraries/Table.php
@@ -110,8 +110,7 @@ class CI_Table {
$new = array();
while(count($array) > 0)
{
- $temp = array_slice($array, 0, $col_limit);
- $array = array_diff($array, $temp);
+ $temp = array_splice($array, 0, $col_limit);
if (count($temp) < $col_limit)
{
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 0d10d6446..de47d4785 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -117,7 +117,8 @@ SVN Commit: not currently released</p>
<li>Fixed a bug (#4413) where a URI containing slashes only e.g. 'http://example.com/index.php?//' would result in PHP errors</li>
<li>Fixed a bug in <kbd>link_tag()</kbd> of the <a href="helpers/url_helper.html">URL helper</a> where a key was passed instead of a value.</li>
<li>Fixed a bug in DB_result::row() that prevented it from returning individual fields with MySQL NULL values.</li>
- </ul>
+ <li>Fixed a bug in the table library that could cause identically constructed rows to be dropped (#3459).</li>
+</ul>
<h2>Version 1.6.1</h2>
<p>Release Date: February 12, 2008<br />