Index: branches/5.1.x/core/units/helpers/custom_fields_helper.php =================================================================== diff -u -N -r13086 -r13545 --- branches/5.1.x/core/units/helpers/custom_fields_helper.php (.../custom_fields_helper.php) (revision 13086) +++ branches/5.1.x/core/units/helpers/custom_fields_helper.php (.../custom_fields_helper.php) (revision 13545) @@ -1,6 +1,6 @@ ', '%3$s'), Array (TABLE_PREFIX, $this->Application->GetVar('m_lang')), $valueString) ); + if ($parse_sqls) { + $string = trim( str_replace(Array('', '%3$s'), Array (TABLE_PREFIX, $this->Application->GetVar('m_lang')), $valueString) ); + } + else { + $string = $valueString; + } if (preg_match_all('/(.*?)<\/SQL>/', $string, $regs)) { $i = 0;