- submitting details code review;

- fixed small notices and CSS;
This commit is contained in:
nikitasinelnikov
2020-02-06 16:01:21 +02:00
parent 9e1b652c32
commit 7ab7a06b75
4 changed files with 799 additions and 750 deletions
+7 -3
View File
@@ -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 ];
}
}