Commit af2026a1 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#208195 by marcingy, jvandyk, bombatower: fix notice in xmlrpcs.inc error handling

parent af34a232
......@@ -67,7 +67,7 @@ function xmlrpc_server($callbacks) {
xmlrpc_server_set($xmlrpc_server);
$result = xmlrpc_server_call($xmlrpc_server, $xmlrpc_server->message->methodname, $xmlrpc_server->message->params);
if ($result->is_error) {
if (is_object($result) && !empty($result->is_error)) {
xmlrpc_server_error($result);
}
// Encode the result
......
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