From 30a24069abf9be0d8b8280888e40ece1b5189475 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Aug 2009 21:48:49 +0000 Subject: [PATCH] Rewritten to use eval() (slow) --- inc/classes/main/helper/class_BaseHelper.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/classes/main/helper/class_BaseHelper.php b/inc/classes/main/helper/class_BaseHelper.php index 7b91d856..65654bdb 100644 --- a/inc/classes/main/helper/class_BaseHelper.php +++ b/inc/classes/main/helper/class_BaseHelper.php @@ -440,8 +440,13 @@ class BaseHelper extends BaseFrameworkSystem { * @return $fieldValue Value from field */ public function getValueField ($fieldName) { + // Construct the eval() command + $eval = sprintf("\$fieldValue = \$this->valueInstance->getField('%s');", + $fieldName + ); + // Get the field value - $fieldValue = call_user_func($this->valueInstance->__toString() . '::getField', array($fieldName)); + eval($eval); // Return it return $fieldValue; -- 2.39.5