mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix (?) error report for invalid method, at least with system requests
This commit is contained in:
parent
10db3ad787
commit
f4fcd97d1f
@ -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']
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user