diff --git a/classes/validator/Validator.class.php b/classes/validator/Validator.class.php index 58535eaf3..35e866abf 100644 --- a/classes/validator/Validator.class.php +++ b/classes/validator/Validator.class.php @@ -17,11 +17,11 @@ class Validator * @constructor */ function Validator($xml_path=''){ - if($xml_path) $this->load($xml_path); - $this->_rules = array(); $this->_filters = array(); $this->_xml_ruleset = null; + + if($xml_path) $this->load($xml_path); // predefined rules $this->addRule(array(