diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 28aa29b0a6..01eea850f9 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -531,17 +531,13 @@ } } - if ($this->xmlrpc || $this->soap) + if ($this->xmlrpc) { - $r = CreateObject('phpgwapi.xmlrpcresp', - CreateObject('phpgwapi.xmlrpcval'), - $GLOBALS['xmlrpcerr']['unknown_method'], - $s - ); - $payload = "\n" . $r->serialize(); - Header("Content-type: text/xml\r\nContent-length: " . strlen($payload)); - print $payload; - $GLOBALS['phpgw']->common->phpgw_exit(False); + xmlrpcfault($s); + } + else if ($this->soap) + { + } else {