// Merge -> 10309

This commit is contained in:
rMalie committed 2011-11-21 11:05:10 +00:00
1 parent 3bfd9ad4ca
commit 82c9dead2a
365 files changed
+11185 -1571

No files matched your search

+2 -2
View File
@@ -483,8 +483,8 @@ abstract class AdminTabCore
$this->_childValidation();
/* Checking for fields validity */
foreach ($rules['validate'] as $field => $function)
if (($value = Tools::getValue($field)) !== false && ($field != 'passwd'))
foreach ($rules['validate'] AS $field => $function)
if (($value = Tools::getValue($field)) !== false AND !empty($value) AND ($field != 'passwd'))
if (!Validate::$function($value))
$this->_errors[] = $this->l('the field').' <b>'.call_user_func(array($className, 'displayFieldName'), $field, $className).'</b> '.$this->l('is invalid');