diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-06 03:02:41 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-06 03:02:41 +0200 |
commit | be8ec803cf8542acca9d2dd24c46b219fecabd9c (patch) | |
tree | d3cb781c01f93eb3038a33b53d45c6577819137a /system | |
parent | ff390bdb457dbcfb5ba3e95323bce5f4a2c17497 (diff) |
Fixed a bug in the table library that could cause identically constructed rows to be dropped (#3459).
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Table.php | 3 |
1 files changed, 1 insertions, 2 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)
{
|