You can now have a method that doesn't accept a parameter but returns some

This commit is contained in:
jengo 2001-11-16 18:23:21 +00:00
parent 1e377b3007
commit 0e5e1f91b3

View File

@ -338,8 +338,11 @@
/* phpgw mod - finally, execute the function call and return the values */ /* phpgw mod - finally, execute the function call and return the values */
$params = $GLOBALS['_xh'][$parser]['params'][0]; $params = $GLOBALS['_xh'][$parser]['params'][0];
$code = '$p = ' . $params . ';'; $code = '$p = ' . $params . ';';
if (count($params) != 0)
{
eval($code); eval($code);
$params = $p->getval(); $params = $p->getval();
}
// _debug_array($params); // _debug_array($params);
$this->reqtoarray($params); $this->reqtoarray($params);