| @@ 1121-1130 (lines=10) @@ | ||
| 1118 | } else { |
|
| 1119 | // either system.multicall is unsupported by server, |
|
| 1120 | // or call failed for some other reason. |
|
| 1121 | if ($fallback) { |
|
| 1122 | // Don't try it next time... |
|
| 1123 | $this->no_multicall = true; |
|
| 1124 | } else { |
|
| 1125 | if (is_a($results, '\PhpXmlRpc\Response')) { |
|
| 1126 | $result = $results; |
|
| 1127 | } else { |
|
| 1128 | $result = new Response(0, PhpXmlRpc::$xmlrpcerr['multicall_error'], PhpXmlRpc::$xmlrpcstr['multicall_error']); |
|
| 1129 | } |
|
| 1130 | } |
|
| 1131 | } |
|
| 1132 | } else { |
|
| 1133 | // override fallback, in case careless user tries to do two |
|
| @@ 643-651 (lines=9) @@ | ||
| 640 | } |
|
| 641 | if (!is_a($r, 'PhpXmlRpc\Response')) { |
|
| 642 | error_log("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler does not return an xmlrpc response object but a " . gettype($r)); |
|
| 643 | if (is_a($r, 'PhpXmlRpc\Value')) { |
|
| 644 | $r = new Response($r); |
|
| 645 | } else { |
|
| 646 | $r = new Response( |
|
| 647 | 0, |
|
| 648 | PhpXmlRpc::$xmlrpcerr['server_error'], |
|
| 649 | PhpXmlRpc::$xmlrpcstr['server_error'] . ": function does not return xmlrpc response object" |
|
| 650 | ); |
|
| 651 | } |
|
| 652 | } |
|
| 653 | } else { |
|
| 654 | // call a 'plain php' function |
|