bug #1901502 Sort data on a field name with space

This commit is contained in:
Marc Delisle
2008-02-25 17:59:13 +00:00
parent c2e6934bf3
commit 854a65a901

View File

@@ -759,9 +759,8 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
}
// $name_to_use_in_sort might contain a space due to
// formatting of function expressions like "COUNT(name )"
// so we remove spaces; this might cause problems with spaces
// inside a column name.
$name_to_use_in_sort = str_replace(' ', '', $name_to_use_in_sort);
// so we remove the space in this situation
$name_to_use_in_sort = str_replace(' )', ')', $name_to_use_in_sort);
if (empty($sort_expression)) {
$is_in_sort = false;