fixed multi-value validation

This commit is contained in:
Roland Gruber 2013-04-27 17:37:04 +00:00
parent ffbe228ba8
commit 99119ea96b
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ abstract class baseModule {
$counter = 0;
while (isset($_POST[$attrName . '_' . $counter])) {
$this->attributes[$attrName][$counter] = $_POST[$attrName . '_' . $counter];
if (($validationID != null) && !get_preg($this->attributes[$attrName][$counter], $validationID)) {
if (($validationID != null) && ($this->attributes[$attrName][$counter] != '') && !get_preg($this->attributes[$attrName][$counter], $validationID)) {
$errors[] = $this->messages[$attrName][0];
}
if ($this->attributes[$attrName][$counter] == '') {