Actions
Feature #21145
closedTS-Condition "userFunc" takes only first parameter
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-09-28
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
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)
Actions