From 4e646f61ed44a816ae02cc20ffa58404c2f75ca9 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 28 Sep 2020 18:41:34 +0200 Subject: [PATCH] PHP 7.x --- classes/controller/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 0ee378e9b..029a7bdf9 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -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(