From 98a643d0c3d9bfa4518cdd4bbe3fdcd3224067ba Mon Sep 17 00:00:00 2001 From: taggon Date: Wed, 8 Jun 2011 08:14:46 +0000 Subject: [PATCH] Fix a small bug git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8462 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/validator/Validator.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(