MDL-23486 fixed regression, sorrrrry

This commit is contained in:
Petr Skoda 2010-07-24 19:19:37 +00:00
parent ff85f9022c
commit e56458a7c7

View File

@ -1506,6 +1506,8 @@ class HTML_QuickForm extends HTML_Common {
//horrible horrible hack
if (!isset($submitValue['text']) or $submitValue['text'] === '') {
$result = false;
} else {
$result = true;
}
} elseif (is_array($submitValue) && !isset($rule['howmany'])) {
$result = $registry->validate($rule['type'], $submitValue, $rule['format'], true);