diff --git a/main/inc/lib/tablesort.lib.php b/main/inc/lib/tablesort.lib.php index 75c095b344..7cc993288d 100644 --- a/main/inc/lib/tablesort.lib.php +++ b/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)