2012-08-20 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_html.php: fixed into the function
	"html_print_select" when pass a grouped array and try to sort.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6892 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-08-20 18:50:10 +00:00
parent 2bf6062ea2
commit 5614af7385
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: fixed into the function
"html_print_select" when pass a grouped array and try to sort.
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,

View File

@ -302,7 +302,9 @@ function html_print_select ($fields, $name, $selected = '', $script = '',
if (is_array($fields) && !empty ($fields)) {
if ($sort !== false) {
// Sorting the fields in natural way and case insensitive preserving keys
uasort($fields, "strnatcasecmp");
$first_elem = reset($fields);
if (!is_array($first_elem))
uasort($fields, "strnatcasecmp");
}
$lastopttype = '';
foreach ($fields as $value => $label) {