Skip to content

Commit 7b82227

Browse files
authored
Merge pull request #119 from wdammak/patch-15
PHP 7.x AdminController.php
2 parents b64ab97 + 515de4a commit 7b82227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/controller/AdminController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3307,7 +3307,7 @@ public function getModulesList($filter_modules_list)
33073307
$filter_modules_list = array($filter_modules_list);
33083308
}
33093309

3310-
if (is_null($filter_modules_list) || !count($filter_modules_list)) {
3310+
if (is_null($filter_modules_list) || empty($filter_modules_list)) {
33113311
return false;
33123312
} //if there is no modules to display just return false;
33133313

@@ -3500,9 +3500,9 @@ public function validateRules($class_name = false)
35003500
foreach ($languages as $language) {
35013501
if (($value = Tools::getValue($field_lang.'_'.$language['id_lang'])) !== false && !empty($value)) {
35023502
if (Tools::strtolower($function) == 'iscleanhtml' && Configuration::get('PS_ALLOW_HTML_IFRAME')) {
3503-
$res = Validate::$function($value, true);
3503+
$res = Validate::{$function}($value, true);
35043504
} else {
3505-
$res = Validate::$function($value);
3505+
$res = Validate::{$function}($value);
35063506
}
35073507
if (!$res) {
35083508
$this->errors[$field_lang.'_'.$language['id_lang']] = sprintf(

0 commit comments

Comments
 (0)