Проверка правила

This commit is contained in:
origami11 2017-06-06 10:16:44 +03:00
parent b82d93905a
commit 4507f7f9d5
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ class Validator_Validator
$ruleObj->$p_name = $p_value;
}
$this->addRule($ruleObj);
} else {
} else if (!empty($rule)) {
throw new Exception('Unknown validation rule "' . $rule . "'");
}
}