From ea2811f6466500bc034b1c7a29a8ba75b1b490d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Wed, 11 Jun 2003 17:35:37 +0000 Subject: [PATCH] --- HTML/php/QuickForm/mdate.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/HTML/php/QuickForm/mdate.php b/HTML/php/QuickForm/mdate.php index d1b73ef..6be63e1 100644 --- a/HTML/php/QuickForm/mdate.php +++ b/HTML/php/QuickForm/mdate.php @@ -118,12 +118,10 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date */ function validate($valor, $nombre, $formato = '') { - if ($valor['Y'] != '--' && $valor['d'] != '--' && $valor['m'] != '--') { + if ($valor['Y'] != '--' && $valor['d'] != '--' && $valor['F'] != '--') { return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d')); } - else { - return false; - } + return true; } // end func validate } ?> -- 2.43.0