File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3307,7 +3307,7 @@ public function getModulesList($filter_modules_list)
3307
3307
$ filter_modules_list = array ($ filter_modules_list );
3308
3308
}
3309
3309
3310
- if (is_null ($ filter_modules_list ) || ! count ($ filter_modules_list )) {
3310
+ if (is_null ($ filter_modules_list ) || empty ($ filter_modules_list )) {
3311
3311
return false ;
3312
3312
} //if there is no modules to display just return false;
3313
3313
@@ -3500,9 +3500,9 @@ public function validateRules($class_name = false)
3500
3500
foreach ($ languages as $ language ) {
3501
3501
if (($ value = Tools::getValue ($ field_lang .'_ ' .$ language ['id_lang ' ])) !== false && !empty ($ value )) {
3502
3502
if (Tools::strtolower ($ function ) == 'iscleanhtml ' && Configuration::get ('PS_ALLOW_HTML_IFRAME ' )) {
3503
- $ res = Validate::$ function ($ value , true );
3503
+ $ res = Validate::{ $ function} ($ value , true );
3504
3504
} else {
3505
- $ res = Validate::$ function ($ value );
3505
+ $ res = Validate::{ $ function} ($ value );
3506
3506
}
3507
3507
if (!$ res ) {
3508
3508
$ this ->errors [$ field_lang .'_ ' .$ language ['id_lang ' ]] = sprintf (
You can’t perform that action at this time.
0 commit comments