Commit b8a1acf3 by HanSon Committed by GitHub

Merge pull request #40 from HanSon/dev

修复bug
2 parents 0291bbaf 165a300c
...@@ -66,7 +66,9 @@ class ContactFactory ...@@ -66,7 +66,9 @@ class ContactFactory
} }
} }
myself()->alias = isset(contact()->get(myself()->username)['Alias']) ? contact()->get(myself()->username)['Alias'] : myself()->nickname ? : myself()->username; $contact = contact()->get(myself()->username);
myself()->alias = isset($contact['Alias']) ? $contact['Alias'] : myself()->nickname ? : myself()->username;
} }
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!