mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- submitting details code review;
- fixed small notices and CSS;
This commit is contained in:
@@ -3685,9 +3685,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
*/
|
||||
function array_sort_by_column( $arr, $col, $dir = SORT_ASC ) {
|
||||
$sort_col = array();
|
||||
foreach ($arr as $key => $row) {
|
||||
if (isset( $row[$col] )) {
|
||||
$sort_col[$key] = $row[$col];
|
||||
foreach ( $arr as $key => $row ) {
|
||||
if ( $key == 'form_id' ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( isset( $row[ $col ] ) ) {
|
||||
$sort_col[ $key ] = $row[ $col ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user