Fix a small bug

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8462 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-06-08 08:14:46 +00:00
parent 3102b857e9
commit 98a643d0c3

View file

@ -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(