mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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:
parent
cf3b29f546
commit
e9b2213a7b
@ -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>
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
|
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
|
||||||
|
@ -302,7 +302,9 @@ function html_print_select ($fields, $name, $selected = '', $script = '',
|
|||||||
if (is_array($fields) && !empty ($fields)) {
|
if (is_array($fields) && !empty ($fields)) {
|
||||||
if ($sort !== false) {
|
if ($sort !== false) {
|
||||||
// Sorting the fields in natural way and case insensitive preserving keys
|
// 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 = '';
|
$lastopttype = '';
|
||||||
foreach ($fields as $value => $label) {
|
foreach ($fields as $value => $label) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user