From 0b9d3e5f44429450c5535fbb214a2ff4d26633b1 Mon Sep 17 00:00:00 2001 From: jengo Date: Mon, 12 Nov 2001 22:07:52 +0000 Subject: [PATCH] Added a band-aid(tm) to prevent things from blowning up when you don't pass parameters to a method --- 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 4f10927f82..e7f9938fee 100644 --- a/phpgwapi/inc/class.xmlrpc_server.inc.php +++ b/phpgwapi/inc/class.xmlrpc_server.inc.php @@ -322,8 +322,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 ($code != '$p = ;') + { + eval($code); + $params = $p->getval(); + } // _debug_array($params); //$this->reqtoarray($params);