[svn r17092] A fixed problem, FS#3282 - The function is_numeric_column() in tablesort.lib.php always returns NULL value.

skala
Ivan Tcholakov 17 years ago
parent 33efa95ee7
commit 10949cf137
  1. 8
      main/inc/lib/tablesort.lib.php

@ -129,13 +129,15 @@ class TableSort
* @author bart.mollet@hogent.be
*/
function is_numeric_column($data, $column)
{
{
$is_numeric = true;
foreach ($data as $index => $row)
{
$is_numeric &= is_numeric(strip_tags($row[$column]));
}
}
return $is_numeric;
}
/**
* Checks if a column of a 2D-array contains only dates (GNU date syntax)

Loading…
Cancel
Save