mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Bug fix
This commit is contained in:
parent
22696a0fc6
commit
21bad5330b
@ -2547,15 +2547,9 @@ function set_when_empty (&$var, $default) {
|
||||
}
|
||||
}
|
||||
|
||||
function sort_by_column (&$array_ref, $column_parameter) {
|
||||
global $column;
|
||||
|
||||
$column = $column_parameter;
|
||||
|
||||
function sort_by_column (&$array_ref, $column) {
|
||||
if (!empty($column)) {
|
||||
usort($array_ref, function ($a, $b) {
|
||||
global $column;
|
||||
|
||||
usort($array_ref, function ($a, $b) use ($column) {
|
||||
return strcmp($a[$column], $b[$column]);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user