From: Roland Häder Date: Fri, 21 Aug 2009 21:48:49 +0000 (+0000) Subject: Rewritten to use eval() (slow) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30a24069abf9be0d8b8280888e40ece1b5189475;p=core.git Rewritten to use eval() (slow) --- 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;