Проверка правила
This commit is contained in:
parent
b82d93905a
commit
abd514139f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 . "'");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue