function xmlrpc_server():
The following code expects an object with an is_error

  if ($result->is_error) {
    xmlrpc_server_error($result);
  }

I constructed a service to return a single string and $result is a string, not an object. From what I can see of the code, $result could also be an object with no is_error. To make the code work, I changed the xmlrpc_server test to:
if (is_object($result) and isset($result->is_error) and $result->is_error) {

Is this an error in xmlrpc_server or is there something magic we have to put in the function called in xmlrpc_server?

Comments

dpearcefl’s picture

Is this still an issue using current Drupal 6?

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.