#21145TS-Condition "userFunc" takes only first parameter
Description
Using the following condition “[userFunc = user_match(66,28,98)]”, the userfunc gets only the first parameter, because in class.t3lib_matchcondition.php in
function evalConditionStr($string) only $funcValue0 is handed over instead $funcValue
if (function_exists($funcName) && call_user_func($funcName, $funcValue0))
{
return true;
}
Changing this to
if (function_exists($funcName) && call_user_func($funcName, $funcValue))
{
return true;
}
would allow more than one parameter.
(issue imported from #M12069)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.