Fix (?) error report for invalid method, at least with system requests

This commit is contained in:
Miles Lott 2001-12-04 14:22:20 +00:00
parent 10db3ad787
commit f4fcd97d1f

View File

@ -290,6 +290,16 @@
if (!isset($dmap[$methName]['function'])) if (!isset($dmap[$methName]['function']))
{ {
if($sysCall && $this->authed)
{
$r = CreateObject('phpgwapi.xmlrpcresp',
CreateObject('phpgwapi.xmlrpcval',
$GLOBALS['xmlrpcstr']['unknown_method'] . ': ' . $methName,
'string'
)
);
return $r;
}
if ($this->authed) if ($this->authed)
{ {
/* phpgw mod - fetch the (bo) class methods to create the dmap */ /* phpgw mod - fetch the (bo) class methods to create the dmap */
@ -373,11 +383,11 @@
} }
else else
{ {
$r = CreateObject( $r = CreateObject('phpgwapi.xmlrpcresp',
'phpgwapi.xmlrpcresp', CreateObject('phpgwapi.xmlrpcval',
CreateObject('phpgwapi.xmlrpcval'), $GLOBALS['xmlrpcstr']['incorrect_params'] . ': ' . $sr[1],
$GLOBALS['xmlrpcerr']['incorrect_params'], 'string'
$GLOBALS['xmlrpcstr']['incorrect_params'] . ': ' . $sr[1] )
); );
} }
} }
@ -390,11 +400,11 @@
} }
else else
{ {
$r = CreateObject( $r = CreateObject('phpgwapi.xmlrpcresp',
'phpgwapi.xmlrpcresp', CreateObject('phpgwapi.xmlrpcval',
CreateObject('phpgwapi.xmlrpcval'), $GLOBALS['xmlrpcstr']['unknown_method'] . ': ' . $methName,
$GLOBALS['xmlrpcerr']['unknown_method'], 'string'
$GLOBALS['xmlrpcstr']['unknown_method'] )
); );
} }
} }