From 99c96525b878e04defc98d0bdd050d424cdd02f7 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 29 Nov 2001 22:07:51 +0000 Subject: [PATCH] Changed to use the xmlrpcfault() function --- phpgwapi/inc/class.db_pgsql.inc.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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 {