Commit 69b567f4 authored by Nigel McNie's avatar Nigel McNie

Prevent a warning when there is no profile data to send back from an xmlrpc call.

parent 760e52d8
...@@ -225,6 +225,9 @@ function user_authorise($token, $useragent) { ...@@ -225,6 +225,9 @@ function user_authorise($token, $useragent) {
// load existing profile information // load existing profile information
$profilefields = array(); $profilefields = array();
$profile_data = get_records_select_assoc('artefact', "owner=? AND artefacttype IN (" . join(",",array_map(create_function('$a','return db_quote($a);'),array_keys($element_list))) . ")", array($USER->get('id')), '','artefacttype, title'); $profile_data = get_records_select_assoc('artefact', "owner=? AND artefacttype IN (" . join(",",array_map(create_function('$a','return db_quote($a);'),array_keys($element_list))) . ")", array($USER->get('id')), '','artefacttype, title');
if ($profile_data == false) {
$profile_data = array();
}
$email = get_field('artefact_internal_profile_email', 'email', 'owner', $sso_session->userid, 'principal', 1); $email = get_field('artefact_internal_profile_email', 'email', 'owner', $sso_session->userid, 'principal', 1);
if (false == $email) { if (false == $email) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment