Skip to content

Commit

Permalink
refactor update_meta response check
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Oct 26, 2023
1 parent 36fe817 commit eedc872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function get_all_introductions( $user_id ): array {
* the one that is already in the database.
*/
public function set_all_introductions( $user_id, array $introductions ): bool {
return $this->user_helper->update_meta( $user_id, self::USER_META_KEY, $introductions ) === true;
return $this->user_helper->update_meta( $user_id, self::USER_META_KEY, $introductions ) !== false;
}

/**
Expand Down

0 comments on commit eedc872

Please sign in to comment.