summaryrefslogtreecommitdiff
path: root/inc/IXR_Library.php
diff options
context:
space:
mode:
authorDennis Ploeger <develop@dieploegers.de>2007-10-12 15:59:30 +0200
committerDennis Ploeger <develop@dieploegers.de>2007-10-12 15:59:30 +0200
commit3a1dad2d15fb82250c76f4ff1ec789d14d38d4fc (patch)
tree260a8223797955bb0d843c281b82b100007821cf /inc/IXR_Library.php
parent9a87c72a533121b83c56075947a3e27c853b2188 (diff)
downloadrpg-3a1dad2d15fb82250c76f4ff1ec789d14d38d4fc.tar.gz
rpg-3a1dad2d15fb82250c76f4ff1ec789d14d38d4fc.tar.bz2
xmlrpc_putpage
Adds the putpage-method to the xmlrpc-server-code darcs-hash:20071012135930-b8925-1d770de41b3e6aea4c612666194e915dda344647.gz
Diffstat (limited to 'inc/IXR_Library.php')
-rw-r--r--inc/IXR_Library.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php
index 723b0f39a..5a4859813 100644
--- a/inc/IXR_Library.php
+++ b/inc/IXR_Library.php
@@ -714,8 +714,9 @@ class IXR_IntrospectionServer extends IXR_Server {
$method = $this->callbacks[$methodname];
$signature = $this->signatures[$methodname];
$returnType = array_shift($signature);
- // Check the number of arguments
- if (count($args) != count($signature)) {
+ // Check the number of arguments. Check only, if the minimum count of parameters is specified. More parameters are possible.
+ // This is a hack to allow optional parameters...
+ if (count($args) < count($signature)) {
// print 'Num of args: '.count($args).' Num in signature: '.count($signature);
return new IXR_Error(-32602, 'server error. wrong number of method parameters');
}