PHP 7.x
This commit is contained in:
@@ -3500,9 +3500,9 @@ class AdminControllerCore extends Controller
|
||||
foreach ($languages as $language) {
|
||||
if (($value = Tools::getValue($field_lang.'_'.$language['id_lang'])) !== false && !empty($value)) {
|
||||
if (Tools::strtolower($function) == 'iscleanhtml' && Configuration::get('PS_ALLOW_HTML_IFRAME')) {
|
||||
$res = Validate::$function($value, true);
|
||||
$res = Validate::{$function}($value, true);
|
||||
} else {
|
||||
$res = Validate::$function($value);
|
||||
$res = Validate::{$function}($value);
|
||||
}
|
||||
if (!$res) {
|
||||
$this->errors[$field_lang.'_'.$language['id_lang']] = sprintf(
|
||||
|
||||
Reference in New Issue
Block a user