Merge pull request #4129 from annando/issue-4121

API: Better use "about" instead of "pdesc"
This commit is contained in:
Hypolite Petovan 2017-12-25 09:23:46 -05:00 committed by GitHub
commit 75ba84efa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -743,8 +743,8 @@ function api_get_user(App $a, $contact_id = null)
$pcontact_id = Contact::getIdForURL($uinfo[0]['url'], 0, true);
if (!empty($profile[0]['pdesc'])) {
$description = $profile[0]['pdesc'];
if (!empty($profile[0]['about'])) {
$description = $profile[0]['about'];
} else {
$description = $uinfo[0]["about"];
}