Commit 30f4a9cd authored by Cool Fire's avatar Cool Fire

Problem is blank records, not non-existent keys

parent 6dac4ec8
Pipeline #1407 passed with stage
in 2 minutes and 42 seconds
......@@ -106,7 +106,7 @@ class Manager2Api < Sinatra::Base
# Get contact mail for user
def mysql_get_contactmail(username)
record = mysql_get_record(username)
return record['email'] if record.key? 'email'
return record['email'] unless record['email'].empty? 'email'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment