diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-29 23:41:11 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-29 23:41:11 -0700 |
commit | db4bc4b0a8540fd9ef564e29eb44885f989f5341 (patch) | |
tree | 5df76e97959a93cf4854ddcafccb6559718b9b6c /includes/form.inc | |
parent | 66d0e0ea7678322342b5c83ea9e14d385d6908aa (diff) | |
download | brdo-db4bc4b0a8540fd9ef564e29eb44885f989f5341.tar.gz brdo-db4bc4b0a8540fd9ef564e29eb44885f989f5341.tar.bz2 |
Issue #188947 by lyricnz: Fixed date_validate()(form) should be date_validate()(element).
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/form.inc b/includes/form.inc index 38ef41cf0..2dffe84cb 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -2853,9 +2853,9 @@ function form_process_date($element) { /** * Validates the date type to stop dates like February 30, 2006. */ -function date_validate($form) { - if (!checkdate($form['#value']['month'], $form['#value']['day'], $form['#value']['year'])) { - form_error($form, t('The specified date is invalid.')); +function date_validate($element) { + if (!checkdate($element['#value']['month'], $element['#value']['day'], $element['#value']['year'])) { + form_error($element, t('The specified date is invalid.')); } } |