check for empty username/email for identifier
This commit is contained in:
parent
4ffeddaf5a
commit
e551aeb342
@ -317,6 +317,7 @@ class Site < Sequel::Model
|
||||
end
|
||||
|
||||
def get_with_identifier(username_or_email)
|
||||
return nil if username_or_email.nil? || username_or_email.empty?
|
||||
if username_or_email =~ /@/
|
||||
site = get_with_email username_or_email
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user