From be8ec803cf8542acca9d2dd24c46b219fecabd9c Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 6 May 2008 01:02:41 +0000 Subject: Fixed a bug in the table library that could cause identically constructed rows to be dropped (#3459). --- system/libraries/Table.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/libraries') 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) { -- cgit v1.2.3-24-g4f1b