Project

General

Profile

Actions

Feature #21145

closed

TS-Condition "userFunc" takes only first parameter

Added by Matthias Stübner about 15 years ago. Updated about 11 years ago.

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

Also available in: Atom PDF