Skip to content

Commit

Permalink
Add a profile_completed validation to avoid a lot of notices
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Jun 2, 2016
1 parent c1e9104 commit e80e744
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/inc/lib/api.lib.php
Expand Up @@ -1368,7 +1368,9 @@ function _api_format_user($user, $add_password = false)
$result['password'] = $user['password'];
}

$result['profile_completed'] = $user['profile_completed'];
if (isset($result['profile_completed'])) {
$result['profile_completed'] = $user['profile_completed'];
}

$result['profile_url'] = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$user_id;

Expand Down

0 comments on commit e80e744

Please sign in to comment.