Skip to content

Commit

Permalink
- updated a slight fix for the foreach-loop at line 355
Browse files Browse the repository at this point in the history
  • Loading branch information
cryogenix committed Apr 18, 2011
1 parent 3c11280 commit fad0d7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application/libraries/Datatables.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,9 @@ protected function produce_output($columns, $iTotal, $iFilteredTotal, $rResult,
if(isset($cus_col_val[1]) && is_array($cus_col_val[1]))
{
foreach($cus_col_val[1] as $cus_colr_key => $cus_colr_val)
{
$cus_col_val[0] = str_ireplace('$' . ($cus_colr_key + 1), $aaData[$row_key][array_search($cus_colr_val, $columns)], $cus_col_val[0]) ;
$aaData[$row_key][] = $cus_col_val[0];
}
$cus_col_val[0] = str_ireplace('$' . ($cus_colr_key + 1), $aaData[$row_key][array_search($cus_colr_val, $columns)], $cus_col_val[0]);

$aaData[$row_key][] = $cus_col_val[0];
}
else
$aaData[$row_key][] = $cus_col_val[0];
Expand Down

0 comments on commit fad0d7e

Please sign in to comment.