forked from extern/egroupware
Added a band-aid(tm) to prevent things from blowning up when you don't pass parameters to a method
This commit is contained in:
parent
c5b92cf216
commit
0b9d3e5f44
@ -322,8 +322,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 ($code != '$p = ;')
|
||||||
|
{
|
||||||
eval($code);
|
eval($code);
|
||||||
$params = $p->getval();
|
$params = $p->getval();
|
||||||
|
}
|
||||||
|
|
||||||
// _debug_array($params);
|
// _debug_array($params);
|
||||||
//$this->reqtoarray($params);
|
//$this->reqtoarray($params);
|
||||||
|
Loading…
Reference in New Issue
Block a user