fix check if 0

This commit is contained in:
andrewshuba
2019-02-28 16:57:48 +02:00
parent 8acf91dc9d
commit a0a3234148
+1 -1
View File
@@ -1672,7 +1672,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
foreach ( $changes as $key => $value ) {
if ( ! in_array( $key, $this->update_user_keys ) ) {
if( $value == 0 ){
if( $value === 0 ){
update_user_meta( $this->id, $key, '0' );
} else {
update_user_meta( $this->id, $key, $value );