Add a profile_completed validation to avoid a lot of notices

remotes/angel/1.11.x
José Loguercio 9 years ago
parent c1e910447f
commit e80e74409c
  1. 4
      main/inc/lib/api.lib.php

@ -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;

Loading…
Cancel
Save