mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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) {
|
function sort_by_column (&$array_ref, $column) {
|
||||||
global $column;
|
|
||||||
|
|
||||||
$column = $column_parameter;
|
|
||||||
|
|
||||||
if (!empty($column)) {
|
if (!empty($column)) {
|
||||||
usort($array_ref, function ($a, $b) {
|
usort($array_ref, function ($a, $b) use ($column) {
|
||||||
global $column;
|
|
||||||
|
|
||||||
return strcmp($a[$column], $b[$column]);
|
return strcmp($a[$column], $b[$column]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user