- fixed: PHP notices and warnings

- fixed: security vulnerability with User Account page and password field
This commit is contained in:
nikitasinelnikov
2021-03-03 13:13:44 +02:00
parent 16bdc0cf9c
commit 5740bc637d
7 changed files with 34 additions and 6 deletions
+3
View File
@@ -3741,11 +3741,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$sort_col = array();
foreach ( $arr as $key => $row ) {
if ( $key == 'form_id' ) {
unset( $arr['form_id'] );
continue;
}
if ( isset( $row[ $col ] ) ) {
$sort_col[ $key ] = $row[ $col ];
} else {
unset( $arr[ $key ] );
}
}