cvs: pear(QUICKFORM_3_1_STABLE) /HTML_QuickForm QuickForm.php

From: Date: Tue, 09 Sep 2003 13:38:09 +0000
Subject: cvs: pear(QUICKFORM_3_1_STABLE) /HTML_QuickForm QuickForm.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12575@lists.php.net to get a copy of this message
avb Tue Sep 9 09:38:09 2003 EDT Modified files: (Branch: QUICKFORM_3_1_STABLE) /pear/HTML_QuickForm QuickForm.php Log: Merged _formRules check from HEAD Index: pear/HTML_QuickForm/QuickForm.php diff -u pear/HTML_QuickForm/QuickForm.php:1.114 pear/HTML_QuickForm/QuickForm.php:1.114.2.1 --- pear/HTML_QuickForm/QuickForm.php:1.114 Sat Jul 19 05:04:57 2003 +++ pear/HTML_QuickForm/QuickForm.php Tue Sep 9 09:38:09 2003 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: QuickForm.php,v 1.114 2003/07/19 09:04:57 mansion Exp $ +// $Id: QuickForm.php,v 1.114.2.1 2003/09/09 13:38:09 avb Exp $ require_once('PEAR.php'); require_once('HTML/Common.php'); @@ -1407,9 +1407,10 @@ */ function validate() { - if (count($this->_rules) == 0 && count($this->_submitValues) > 0) { + if (count($this->_rules) == 0 && count($this->_formRules) == 0 && + (count($this->_submitValues) > 0 || count($this->_submitFiles) > 0)) { return true; - } elseif (count($this->_rules) == 0 || count($this->_submitValues) == 0) { + } elseif (count($this->_submitValues) == 0 && count($this->_submitFiles) == 0) { return false; } @@ -2040,4 +2041,4 @@ // }}} } // end class HTML_QuickForm_Error -?> \ No newline at end of file +?>

« previous php.pear.cvs (#12575) next »