[BUGFIX] TypoScript userFunc condition does not work with static methods
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Configuration / TypoScript / ConditionMatching / AbstractConditionMatcher.php
index dc02c1b..a5eab38 100644 (file)
@@ -417,7 +417,7 @@ abstract class AbstractConditionMatcher {
                                preg_match_all('/^\s*([^\(\s]+)\s*(?:\((.*)\))?\s*$/', $value, $matches);
                                $funcName = $matches[1][0];
                                $funcValues = $matches[2][0] ? $this->parseUserFuncArguments($matches[2][0]) : array();
-                               if (function_exists($funcName) && call_user_func_array($funcName, $funcValues)) {
+                               if (is_callable($funcName) && call_user_func_array($funcName, $funcValues)) {
                                        return TRUE;
                                }
                                return FALSE;