mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
use && instead of and
This commit is contained in:
parent
626e896c13
commit
ef436a5775
@ -66,7 +66,7 @@ class UserUpdater
|
||||
user_profile.send("#{attribute}=", attributes[attribute])
|
||||
end
|
||||
|
||||
if fields = attributes[:custom_fields] and fields.present?
|
||||
if fields = attributes[:custom_fields] && fields.present?
|
||||
user.custom_fields = fields
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user