From 0e5e1f91b3308a73024a70addc68ea9f1977835b Mon Sep 17 00:00:00 2001 From: jengo Date: Fri, 16 Nov 2001 18:23:21 +0000 Subject: [PATCH] You can now have a method that doesn't accept a parameter but returns some --- phpgwapi/inc/class.xmlrpc_server.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.xmlrpc_server.inc.php b/phpgwapi/inc/class.xmlrpc_server.inc.php index 4e9b7fe959..c0f2f35420 100644 --- a/phpgwapi/inc/class.xmlrpc_server.inc.php +++ b/phpgwapi/inc/class.xmlrpc_server.inc.php @@ -338,8 +338,11 @@ /* phpgw mod - finally, execute the function call and return the values */ $params = $GLOBALS['_xh'][$parser]['params'][0]; $code = '$p = ' . $params . ';'; - eval($code); - $params = $p->getval(); + if (count($params) != 0) + { + eval($code); + $params = $p->getval(); + } // _debug_array($params); $this->reqtoarray($params);